Search...

HTTPError

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

Extends

Error

constructor(status, method, url, bodyData)

Constructs a new instance of the HTTPError class
NameTypeOptionalDescription
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