> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # APIErrorType Canonical OpenRouter error type, stable across all API formats ## Example Usage ```python theme={null} from openrouter.components import APIErrorType # Open enum: unrecognized values are captured as UnrecognizedStr value: APIErrorType = "context_length_exceeded" ``` ## Values This is an open enum. Unrecognized values will not fail type checks. * `"context_length_exceeded"` * `"max_tokens_exceeded"` * `"token_limit_exceeded"` * `"string_too_long"` * `"authentication"` * `"permission_denied"` * `"payment_required"` * `"rate_limit_exceeded"` * `"provider_overloaded"` * `"provider_unavailable"` * `"invalid_request"` * `"invalid_prompt"` * `"not_found"` * `"precondition_failed"` * `"payload_too_large"` * `"unprocessable"` * `"content_policy_violation"` * `"refusal"` * `"invalid_image"` * `"image_too_large"` * `"image_too_small"` * `"unsupported_image_format"` * `"image_not_found"` * `"image_download_failed"` * `"server"` * `"timeout"` * `"unmapped"`