Common HTTP Status Codes
| Status | Meaning | Recommended Action |
|---|---|---|
200 | Request succeeded | Process the payload |
401 | Missing or invalid API code | Check the API code and request headers |
403 | API profile expired or invalid | Contact support or renew the profile |
429 | Request limit reached | Wait and retry after the cooldown window |
503 | Temporary service issue | Retry with backoff |
Example REST Error
Stream Error Event
If the real-time stream needs to close, it can emit anerror event.
Example:
Safe Retry Pattern
- Retry
503errors with exponential backoff - Do not hammer the API after a
429 - After reconnecting a stream, call History again to recover possible gaps
Suggested Python Wrapper
Operational Advice
- Log both the HTTP status and the raw body when debugging
- Keep your API code outside source control
- Use history plus stream together instead of relying on the stream alone

