Skip to content

AJAXError

Defined in: src/util/ajax.ts:87

An error thrown when a HTTP request results in an error response.

Extends

  • Error

Constructors

Constructor

new AJAXError(status: number, statusText: string, url: string, body: Blob): AJAXError

Defined in: src/util/ajax.ts:114

Parameters

ParameterTypeDescription
statusnumberThe response's HTTP status code.
statusTextstringThe response's HTTP status text.
urlstringThe request's URL.
bodyBlobThe response's body.

Returns

AJAXError

Overrides

Error.constructor

Properties

body

body: Blob

Defined in: src/util/ajax.ts:106

The response's body.


status

status: number

Defined in: src/util/ajax.ts:91

The response's HTTP status code.


statusText

statusText: string

Defined in: src/util/ajax.ts:96

The response's HTTP status text.


url

url: string

Defined in: src/util/ajax.ts:101

The request's URL.