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 for an unauthenticated request, i.e. missing credentials (usually http!HttpStatusCode.Unauthorized).