export declare class HTTPError extends Error
export declare class HTTPError extends Error
Represents a HTTP error
Extends
Errorconstructor(status, method, url, bodyData)
Constructs a new instance of the
HTTPError
className | Type | Optional | Description |
---|---|---|---|
status | number | No | The status code of the response |
method | string | No | The method of the request that erred |
url | string | No | The url of the request that erred |
bodyData | Pick<InternalRequest, 'body' | 'files'> | No | The unparsed data for the request that errored |