Expand description
Claude API Error Types
Typed errors matching every HTTP status code the Claude API returns. Each variant carries the error message from the API response body.
Retryable errors: RateLimited (429), InternalError (500), Overloaded (529) Non-retryable: everything else (fix the request before retrying)
Structs§
- ApiError
Body - The inner error object with machine-readable type and human-readable message.
- ApiError
Response - The top-level error envelope from the Claude API:
{ "type": "error", "error": { "type": "...", "message": "..." } }
Enums§
- Claude
ApiError - Every error the Claude Messages API can return, plus network/parse errors.