Skip to content

Class: NetworkHTTPError ​

a generic HTTP failure (405/500/502/503/504/etc.) that isn't one of the more specific cases below.

entity-not-found responses are handled separately and resolve to null. see the client docs.

Extends ​

Constructors ​

Constructor ​

ts
new NetworkHTTPError(
   network: string, 
   message: string, 
   options?: object): NetworkHTTPError;

Parameters ​

ParameterType
networkstring
messagestring
options{ cause?: unknown; status?: number; url?: string; }
options.cause?unknown
options.status?number
options.url?string

Returns ​

NetworkHTTPError

Inherited from ​

NetworkAPIError.constructor

Properties ​

PropertyModifierTypeInherited from
networkreadonlystringNetworkAPIError.network
statusreadonlynumber | undefinedNetworkAPIError.status
url?readonlystringNetworkAPIError.url

Distributed under the MIT License.