Claude Platform Docs
Messages
Managed Agents
Admin
Resources
Best practices
Models & pricing
CLI, SDKs, and libraries
Claude API skill
Release notes
API reference
English
Console
Log in
Copy page
Python
API reference
Shared
Models
class
APIErrorObject
:
…
message
:
str
default
Internal server error
type
:
Literal
[
"api_error"
]
default
api_error
class
AuthenticationError
:
…
message
:
str
default
Authentication error
type
:
Literal
[
"authentication_error"
]
default
authentication_error
class
BillingError
:
…
message
:
str
default
Billing error
type
:
Literal
[
"billing_error"
]
default
billing_error
ErrorObject
One of the following:
class
ErrorResponse
:
…
error
:
ErrorObject
One of the following:
request_id
:
Optional
[
str
]
type
:
Literal
[
"error"
]
default
error
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
default
Request timeout
type
:
Literal
[
"timeout_error"
]
default
timeout_error
class
InvalidRequestError
:
…
message
:
str
default
Invalid request
type
:
Literal
[
"invalid_request_error"
]
default
invalid_request_error
class
NotFoundError
:
…
message
:
str
default
Not found
type
:
Literal
[
"not_found_error"
]
default
not_found_error
class
OverloadedError
:
…
message
:
str
default
Overloaded
type
:
Literal
[
"overloaded_error"
]
default
overloaded_error
class
PermissionError
:
…
message
:
str
default
Permission denied
type
:
Literal
[
"permission_error"
]
default
permission_error
class
RateLimitError
:
…
message
:
str
default
Rate limited
type
:
Literal
[
"rate_limit_error"
]
default
rate_limit_error