Skip to content

XHRError object

XHRError is an object which represents the error thrown during a form submission and consists of the following fields:

type XHRError = Error & {
    request: XMLHttpRequest;
    response?: XHRResponse;
}

Error

Error represents the Error object.

XMLHttpRequest

XMLHttpRequest represents the XMLHttpRequest object.

XHRResponse

XHRResponse represents the object of the following shape:

type XHRResponse = {
    data: ErrorData;
}

ErrorData

ErrorData represents the ErrorData object.