HttpStatusError
A response that arrived intact but was not OK. Carries the status so retry logic can tell a transient 503 from a permanent 404 without parsing prose.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HttpStatusError(status: number, url: string): HttpStatusError;Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
status | number | The HTTP status the server returned. |
url | string | The address that returned it, so the message names the target. |
Returns
Section titled “Returns”HttpStatusError
Overrides
Section titled “Overrides”Error.constructor