Skip to main content

Module error

Module error 

Source
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§

ApiErrorBody
The inner error object with machine-readable type and human-readable message.
ApiErrorResponse
The top-level error envelope from the Claude API: { "type": "error", "error": { "type": "...", "message": "..." } }

Enums§

ClaudeApiError
Every error the Claude Messages API can return, plus network/parse errors.