Search...

HTTPError

declare class HTTPError extends Error 
declare class HTTPError extends Error 
Represents a HTTP error

Extends

Error

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

Constructs a new instance of the HTTPError class
NameTypeOptionalDescription
namestringNoThe name of the error
statusnumberNoThe status code of the response
methodstringNoThe method of the request that erred
urlstringNoThe url of the request that erred
bodyDataPick<InternalRequest, 'body' | 'files'>NoThe unparsed data for the request that errored

method

:

string

name

:

string

requestBody

:

RequestBody

status

:

number

url

:

string