Made response.error more generalized

The prototype for an HTTP response error can now be used for any standard HTTP status code, but when it takes an error object, defaults to 500.