Add status code and original message to error.
Add tests for error handler.