passing response to error handler

This way the server can pass additional data in the error response body.