Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

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.