Skip to main content

Class: HttpError

Extends​

  • Error

Constructors​

Constructor​

new HttpError(response, message, url?): HttpError

Parameters​

response​

Response

message​

string

url?​

string

Returns​

HttpError

Overrides​

Error.constructor

Properties​

cause?​

optional cause?: unknown

Inherited from​

Error.cause


message​

message: string

Inherited from​

Error.message


name​

name: string

Inherited from​

Error.name


response​

readonly response: Response


stack?​

optional stack?: string

Inherited from​

Error.stack


url​

readonly url: string

Request URL the error originated from. Falls back to response.url.

Accessors​

status​

Get Signature​

get status(): number

Returns​

number