Claude Platform Docs

Shared

Models
class ApiErrorObject:
String message
JsonValue type "api_error"constant
class AuthenticationError:
String message
JsonValue type "authentication_error"constant
class BillingError:
String message
JsonValue type "billing_error"constant
class ErrorObject: A class that can be one of several variants.union
class ErrorResponse:
One of the following:
Optional<String> requestId
JsonValue type "error"constant
enum ErrorType:
INVALID_REQUEST_ERROR("invalid_request_error")
AUTHENTICATION_ERROR("authentication_error")
PERMISSION_ERROR("permission_error")
NOT_FOUND_ERROR("not_found_error")
RATE_LIMIT_ERROR("rate_limit_error")
TIMEOUT_ERROR("timeout_error")
OVERLOADED_ERROR("overloaded_error")
API_ERROR("api_error")
BILLING_ERROR("billing_error")
class GatewayTimeoutError:
String message
JsonValue type "timeout_error"constant
class InvalidRequestError:
String message
JsonValue type "invalid_request_error"constant
class NotFoundError:
String message
JsonValue type "not_found_error"constant
class OverloadedError:
String message
JsonValue type "overloaded_error"constant
class PermissionError:
String message
JsonValue type "permission_error"constant
class RateLimitError:
String message
JsonValue type "rate_limit_error"constant