Creates an API error while preserving the upstream response body.
The HTTP status returned by AniList.
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.
Stable code used to classify the failure.
ReadonlydataResponse body returned by the upstream API, preserved verbatim.
Optional ReadonlyrateRate-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.
Optional ReadonlyrawOriginal Axios or transport error when raw diagnostics were enabled.
ReadonlystatusHTTP status returned by the upstream API.
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.