Error ⇐ ExtensibleError
Kind: global interface
Extends: ExtensibleError
- Error ⇐
ExtensibleError
- .getHttpStatus() ⇒
number
- .getParams() ⇒
Object.<string, \*>
- .getHttpStatus() ⇒
error.getHttpStatus() ⇒ number
Returns the HTTP status to send to the client.
If the error has occurred at the client-side, the status code is used to determine the error page to show to the user.
This method is a shorthand for the following code snippet:
this.getParams().status || 500
.
Kind: instance method of Error
Returns: number
- The HTTP status to send to the client.
See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
error.getParams() ⇒ Object.<string, \*>
Returns the error parameters providing additional details about the
error. The structure of the returned object is always
situation-dependent, but the returned object usually contains the
status: number
field which represents the HTTP status to send to
the client.
Kind: instance method of Error
Returns: Object.<string, \*>
- The route parameters of the route at which
the error has occurred.
See: Error#getHttpStatus