Error Response Format
All error responses follow this format:HTTP Status Codes
Status Code | Description |
---|---|
200 | Success - The request was successful |
400 | Bad Request - The request was invalid |
401 | Unauthorized - Missing or invalid API key |
403 | Forbidden - Valid API key but insufficient permissions |
500 | Internal Server Error - Something went wrong on our end |
Common Error Responses
400 Bad Request
Missing Required Parameter
Invalid Breakdown Format
Invalid Breakdown Values
Invalid Date Format
Date Range Too Large
401 Unauthorized
Missing API Key
403 Forbidden
Invalid API Key
Brand Access Denied
500 Internal Server Error
Authentication Error
Date Range Validation Error
General Server Error
Handling Errors
JavaScript Example
Python Example
Error Handling Best Practices
- Check status codes: Always check the HTTP status code before processing the response
- Parse error messages: Extract both the error title and detailed messages
- Handle network errors: Catch and handle network-level exceptions
- Log errors: Log error details for debugging purposes
- Retry logic: Consider implementing retry logic for 5xx errors
- User feedback: Provide meaningful error messages to end users
Rate Limiting
While the API doesn’t have strict rate limits, we recommend:- Making reasonable numbers of requests
- Implementing exponential backoff for retries
- Caching responses when appropriate
- Avoiding rapid-fire requests
Need help debugging? If you’re getting unexpected errors, check our authentication guide or contact support with the full error response.