AniLink - v2.0.0
    Preparing search index...

    Variable AniLinkErrorCodesConst

    AniLinkErrorCodes: {
        ABORTED: "ABORTED_ERROR";
        API: "API_ERROR";
        AUTH: "AUTH_ERROR";
        CIRCUIT: "CIRCUIT_OPEN_ERROR";
        GRAPHQL: "GRAPHQL_ERROR";
        NETWORK: "NETWORK_ERROR";
        TIMEOUT: "TIMEOUT_ERROR";
        UNKNOWN: "UNKNOWN_ERROR";
        VALIDATION: "VALIDATION_ERROR";
    } = ...

    AniLinkErrorCodes is the stable code map returned by the AniLink transport boundary.

    These codes let consumers classify failures without depending on Axios implementation details or matching human-readable messages. Use AniLinkErrorCode to type the code and AniLinkError to branch on it.

    Type Declaration

    • ReadonlyABORTED: "ABORTED_ERROR"
    • ReadonlyAPI: "API_ERROR"
    • ReadonlyAUTH: "AUTH_ERROR"
    • ReadonlyCIRCUIT: "CIRCUIT_OPEN_ERROR"
    • ReadonlyGRAPHQL: "GRAPHQL_ERROR"
    • ReadonlyNETWORK: "NETWORK_ERROR"
    • ReadonlyTIMEOUT: "TIMEOUT_ERROR"
    • ReadonlyUNKNOWN: "UNKNOWN_ERROR"
    • ReadonlyVALIDATION: "VALIDATION_ERROR"
    import { AniLinkErrorCodes } from "./base/AniLinkError";
    if (error.code === AniLinkErrorCodes.AUTH) {
    console.error("Missing token");
    }