Static Optional prepareOptional override for formatting stack traces
Optional override for formatting stack traces
Static stackReadonly statusReadonly tagA tag identifying this object as an HttpError. Any object having this tag should implement this interface
Readonly nameThe name of the error, which will always be the official text associated with the status code
Optional Readonly subcodeAn optional subcode that you can use to further understand why an error occurred.
The level at which this error should be logged. This can be useful for keeping log noise down for unimportant errors such as 404s while elevating more important errors, such as "database down".
An optional list of obstructions that can help the user understand why they can't do what they're trying to do
Readonly headersHeaders to attach to the HTTP response. Useful for things like attaching the WWW-Authenticate header to 401
responses.
Optional causeOptional stackStatic captureStatic fromCreate an HTTP error from a random error
NOTE: If the passed-in error is already an HttpError, it will be passed back without modification. Any status or
metadata passed in will not be applied in this case. Because of this, you can think of the status and meta
params as defaults.
Optional meta: ErrorMeta<Obstructions>Optional meta: ErrorMeta<Obstructions>Serialize an HTTP error to JSON
Static fromJSONCreate an HTTP error from a JSON representation
Generated using TypeDoc
The error that is thrown when a job times out