RequestErrorEvent

external class RequestErrorEvent(var statusCode: Int = definedExternally, var response: Any = definedExternally, responseHeaders: Any? = definedExternally)(source)

An event that is raised when a request encounters an error.

Parameters

responseHeaders

The response headers, represented either as an object literal or as a string in the format returned by XMLHttpRequest's getAllResponseHeaders() function.

See also

Constructors

Link copied to clipboard
constructor(statusCode: Int = definedExternally, response: Any = definedExternally, responseHeaders: Any? = definedExternally)

Properties

Link copied to clipboard

The response included along with the error.

Link copied to clipboard

The headers included in the response, represented as an object literal of key/value pairs. If the error does not include any headers, this property will be undefined.

Link copied to clipboard

The HTTP error status code, such as 404.