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

new AJAXError()

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

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

Parameters

Parameter Type Description
status number The response's HTTP status code.
statusText string The response's HTTP status text.
url string The request's URL.
body Blob The 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.