Creates a new HTTP error.
The error message.
The HTTP status code.
Optionaldata: any
Additional error data.
OptionalretryAfter: number
The time in milliseconds the server asked clients to wait before retrying, as specified by the http!HttpHeader.RetryAfter header.
OptionaldataAdditional error data.
OptionalretryThe time in milliseconds the server asked clients to wait before retrying, as specified by the http!HttpHeader.RetryAfter header.
The HTTP status code.
Thrown on HTTP response with a non-successful status code (4xx or 5xx).