class HTTPError

extends

Error
declare class HTTPError extends Error

Represents a HTTP error

Constructors

constructor(
name: string
status: number
method: string
url: string
bodyData: Pick<InternalRequest, 'files' | 'body'>
)

Constructs a new instance of the HTTPError class

method : string

name : string

requestBody : RequestBody

status : number

url : string