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