AniLink - v2.0.0
    Preparing search index...

    Interface RequestErrorContext

    Context passed to the request lifecycle hooks for a single failed attempt.

    interface RequestErrorContext {
        attempt: number;
        code: AniLinkErrorCode;
        method: HttpMethod;
        nextDelayMs?: number;
        status?: number;
        url: string;
    }
    Index
    attempt: number

    The 1-based attempt that failed.

    The stable code of the normalized failure; see AniLinkErrorCode.

    method: HttpMethod

    The HTTP method of the request.

    nextDelayMs?: number

    The delay before the next retry, when the failure will be retried.

    status?: number

    The HTTP status when the failure came from an API response.

    url: string

    The URL the request was sent to.