---
title: Shared
url: https://platform.claude.com/docs/en/api/php/$shared
---

# Shared

## Domain types

### API Error Object

- `class APIErrorObject`

  - `"api_error" type`

  - `string message`

### Authentication Error

- `class AuthenticationError`

  - `"authentication_error" type`

  - `string message`

### Billing Error

- `class BillingError`

  - `"billing_error" type`

  - `string message`

### Error Object

- `class ErrorObject`

  - `class InvalidRequestError`

    - `"invalid_request_error" type`

    - `string message`

  - `class AuthenticationError`

    - `"authentication_error" type`

    - `string message`

  - `class BillingError`

    - `"billing_error" type`

    - `string message`

  - `class PermissionError`

    - `"permission_error" type`

    - `string message`

  - `class NotFoundError`

    - `"not_found_error" type`

    - `string message`

  - `class RateLimitError`

    - `"rate_limit_error" type`

    - `string message`

  - `class GatewayTimeoutError`

    - `"timeout_error" type`

    - `string message`

  - `class APIErrorObject`

    - `"api_error" type`

    - `string message`

  - `class OverloadedError`

    - `"overloaded_error" type`

    - `string message`

### Error Response

- `class ErrorResponse`

  - `"error" type`

  - `ErrorObject error`

  - `?string requestID`

### Error Type

- `enum ErrorType`

  - `"invalid_request_error"`

  - `"authentication_error"`

  - `"permission_error"`

  - `"not_found_error"`

  - `"rate_limit_error"`

  - `"timeout_error"`

  - `"overloaded_error"`

  - `"api_error"`

  - `"billing_error"`

### Gateway Timeout Error

- `class GatewayTimeoutError`

  - `"timeout_error" type`

  - `string message`

### Invalid Request Error

- `class InvalidRequestError`

  - `"invalid_request_error" type`

  - `string message`

### Not Found Error

- `class NotFoundError`

  - `"not_found_error" type`

  - `string message`

### Overloaded Error

- `class OverloadedError`

  - `"overloaded_error" type`

  - `string message`

### Permission Error

- `class PermissionError`

  - `"permission_error" type`

  - `string message`

### Rate Limit Error

- `class RateLimitError`

  - `"rate_limit_error" type`

  - `string message`
