HTTPError

export declare class HTTPError extends Error
export 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
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, 'body' | 'files'>No
The unparsed data for the request that errored
method:string
name:string
requestBody:RequestBody
status:number
url:string