Added the ability to override the default response error handler.