Error Response Format
All error responses have the same shape:status field is one of:
| Status | Meaning |
|---|---|
failed | Generic error |
timeout | Query execution timed out |
notFound | Requested resource does not exist |
Examples
Bad request (400):HTTP Status Codes
| Status | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request: Invalid parameters |
| 401 | Unauthorized: Missing or invalid token |
| 403 | Forbidden: Token lacks required scope |
| 404 | Not Found: Resource doesn’t exist |
| 429 | Too Many Requests: Rate limit exceeded |
| 500 | Server Error: Something went wrong on our end |
| 504 | Gateway Timeout: Query took too long |
Best Practices
- Implement exponential backoff for 500/504 errors
- Cache responses where appropriate
- Batch requests when possible
- Use WebSocket for real-time data instead of polling
SDK Error Handling
See TypeScript SDK Error Responses for SDK-specific error handling.Related
Authentication
How to get and use bearer tokens
REST Overview
API basics and available endpoints

