Skip to content

Class: AJAXError

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

Hierarchy

  • Error

AJAXError

Constructors

constructor

new AJAXError(status, statusText, url, body): AJAXError

Parameters

Name 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:113

Properties

body

body: Blob

The response's body.

Defined in

src/util/ajax.ts:105


status

status: number

The response's HTTP status code.

Defined in

src/util/ajax.ts:90


statusText

statusText: string

The response's HTTP status text.

Defined in

src/util/ajax.ts:95


url

url: string

The request's URL.

Defined in

src/util/ajax.ts:100