AniLink - v2.0.0
    Preparing search index...

    Interface GraphQLUpstreamError

    A single upstream GraphQL error object as carried by an HTTP 200 envelope.

    AniList error entries always carry a human-readable message and usually a numeric status (for example 404 for "Not Found" versus 500 for an internal server error); locations and extensions appear when the server includes them. Any additional upstream fields are preserved verbatim via the index signature so consumers never need to string-match messages to classify a failure.

    interface GraphQLUpstreamError {
        extensions?: Record<string, unknown> | null;
        locations?: unknown;
        message: string;
        status?: string | number;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Any additional upstream fields, preserved verbatim.

    Index
    extensions?: Record<string, unknown> | null

    Arbitrary upstream extension metadata, when present.

    locations?: unknown

    The GraphQL source locations the error refers to, when present.

    message: string

    The human-readable error message returned by AniList.

    status?: string | number

    The upstream HTTP-like status for the error, when present (e.g. 404, 500).