Refactor: Server: Extract method: handle

It's a common case where, at the end of
our data callbacks, if there is an
error just send a 500, and send the data
with a 200 upon success.

Extract this into its own method, with
a response object as the only parameter.