AniLink - v2.0.0
    Preparing search index...

    Class AniLinkApiError

    A failure returned by an upstream HTTP API.

    This is the transport-level failure for every provider: GraphQL providers surface HTTP failures through it and protocol-level failures through AniLinkGraphQLError; REST providers surface every non-2xx response through it directly.

    Hierarchy (View Summary)

    Index
    • Creates an API error while preserving the upstream response body.

      Parameters

      • status: number

        The HTTP status returned by AniList.

      • data: unknown

        The response body returned by AniList.

      • OptionalrawAxiosError: unknown

        The original Axios error when raw diagnostics are enabled.

      • Optionaloptions: { rateLimit?: RateLimitInfo }

        Additional error metadata such as rate-limit headers.

      Returns AniLinkApiError

    Stable code used to classify the failure.

    data: unknown

    Response body returned by the upstream API, preserved verbatim.

    rateLimit?: RateLimitInfo

    Rate-limit accounting parsed from the x-ratelimit-limit, x-ratelimit-remaining, and x-ratelimit-reset response headers, whenever AniList includes all three. Use it to self-throttle before the next request instead of waiting for another 429. It is never included in the error message so logs stay clean.

    rawAxiosError?: unknown

    Original Axios or transport error when raw diagnostics were enabled.

    status: number

    HTTP status returned by the upstream API.