We already have a way to end the response early: Response::redirect() or Response::reload().
I'm proposing a new function, abort, which by default will cause the Response to follow its exitCallback, and can take an optional parameter to set the response code.