HTTPError

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

Extends

Error
constructor(status, statusText, method, url, bodyData)
Constructs a new instance of the HTTPError class
NameTypeOptionalDescription
statusnumberNoThe status code of the response
statusTextstringNoThe status text 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