Implemented system for setting a default Error object to be serialized when an error response is returned