HTTPError

Represents a HTTP error
declare class HTTPError extends Error 

Extends

Error

constructor(name, status, method, url, bodyData)

Constructs a new instance of the HTTPError class
NameTypeOptionalDescription
namestringNo
The name of the error
statusnumberNo
The status code of the response
methodstringNo
The method of the request that erred
urlstringNo
The url of the request that erred
bodyDataPick<InternalRequest, 'files' | 'body'>No
The unparsed data for the request that errored

method

:

string

name

:

string

requestBody

:

RequestBody

status

:

number

url

:

string