Skip to main content

Exception hierarchy

All SDK errors extend ChatATPError, which carries:
  • status_code — the HTTP status code (if applicable)
  • args[0] — a human-readable message
  • payload — the raw API response body
  • request_id — the server request ID (when available)

Handling errors

Retries

The SDK retries automatically on transient failures with exponential backoff. The default is 2 retries. Adjust via:
Set max_retries=0 to disable retries entirely.