Skip to content

AJAXError

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

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

Defined in

src/util/ajax.ts:114

Properties

body

body: Blob

The response's body.

Defined in

src/util/ajax.ts:106


status

status: number

The response's HTTP status code.

Defined in

src/util/ajax.ts:91


statusText

statusText: string

The response's HTTP status text.

Defined in

src/util/ajax.ts:96


url

url: string

The request's URL.

Defined in

src/util/ajax.ts:101