Claude Platform Docs

Shared

Models
class APIErrorObject:
message: str
defaultInternal server error
type: Literal["api_error"]
defaultapi_error
class AuthenticationError:
message: str
defaultAuthentication error
type: Literal["authentication_error"]
defaultauthentication_error
class BillingError:
message: str
defaultBilling error
type: Literal["billing_error"]
defaultbilling_error
One of the following:
class ErrorResponse:
One of the following:
request_id: Optional[str]
type: Literal["error"]
defaulterror
Literal["invalid_request_error", "authentication_error", "permission_error", 6 more]
One of the following:
"invalid_request_error"
"authentication_error"
"permission_error"
"not_found_error"
"rate_limit_error"
"timeout_error"
"overloaded_error"
"api_error"
"billing_error"
class GatewayTimeoutError:
message: str
defaultRequest timeout
type: Literal["timeout_error"]
defaulttimeout_error
class InvalidRequestError:
message: str
defaultInvalid request
type: Literal["invalid_request_error"]
defaultinvalid_request_error
class NotFoundError:
message: str
defaultNot found
type: Literal["not_found_error"]
defaultnot_found_error
class OverloadedError:
message: str
defaultOverloaded
type: Literal["overloaded_error"]
defaultoverloaded_error
class PermissionError:
message: str
defaultPermission denied
type: Literal["permission_error"]
defaultpermission_error
class RateLimitError:
message: str
defaultRate limited
type: Literal["rate_limit_error"]
defaultrate_limit_error