Extend the error handler to contain the response