HTTP status codes overview
| Status Code | Category | Description |
|---|---|---|
200 OK | Success | Request succeeded, data returned |
202 Accepted | Success | Write request accepted for processing |
400 Bad Request | Client Error | Invalid request parameters |
401 Unauthorized | Client Error | Authentication failed |
403 Forbidden | Client Error | Access denied or resource conflict |
404 Not Found | Client Error | Resource doesn’t exist |
429 Too Many Requests | Client Error | Monthly API call limit exceeded (Free/Trial) |
500 Internal Server Error | Server Error | Server-side issue |
Authentication errors (401)
Missing API token
- Query parameter:
?auth_token=YOUR_TOKEN - Authorization header:
Authorization: Token YOUR_TOKEN
Invalid API token
- Go to Settings > API Tokens in your dashboard
- Copy the correct Read API Token
- Ensure there are no extra spaces or characters
Write token required
Bad request errors (400)
Invalid query parameters
levels: Integer 1-5page: Positive integerpage_size: Integer 1-100
Invalid locale parameter
- Go to Settings > Localization in your dashboard
- Verify the locale slug matches your API request
- Locale slugs are typically lowercase (e.g.,
en,es,fr-ca)
Invalid search parameters
- Are URL-encoded if containing special characters
- Don’t exceed maximum length (typically 256 characters)
- Use valid search syntax
Invalid field filter
- Field names match your content schema exactly
- Use dot notation for nested fields:
fields.hero.title - Fields parameter is comma-separated without spaces
Forbidden errors (403)
Multiple pages found
page_type=*, multiple pages share the same slug.
Solution:
- Specify a page type instead of
*:/pages/landing_page/homepage - Or ensure slugs are unique across all page types
Access Denied
- Verify you’re using the correct account’s API token
- Check if your plan includes access to this feature
- Contact support if you believe this is an error
Not found errors (404)
Page not found
- Verify the page is published (not draft)
- Check the slug matches exactly (case-sensitive)
- Confirm the page type key is correct
- Verify the page exists in the dashboard
Collection not found
- Check the collection key in Content Types > Collections
- Collection keys use underscores, not hyphens
- Keys are case-sensitive
Blog Post not found
- Verify the post is published
- Check the slug is correct
- Ensure you’re not including
/blog/prefix in the slug
Rate limit errors (429)
Too Many Requests
- Check usage: Review API calls in your billing dashboard
- Reduce calls: Cache responses and avoid polling
- Wait for reset: The block lifts at the next billing cycle
- Upgrade if needed: Paid plans are not blocked for monthly API overages
| Header | Description |
|---|---|
Retry-After | Seconds to wait before retrying (provided by API when rate limited) |
When you exceed your plan’s monthly API call limit, the
Retry-After value indicates the seconds remaining until the end of the current billing month when your limit resets.Validation Errors
Content validation failed
- Ensure required fields are provided
- Verify slugs are unique
- Check field values meet validation rules (min/max length, format)
Schema Mismatch
- Check the page type schema in Content Types
- Ensure field names match exactly
- Update your code to match the current schema
Server errors (500)
Internal Server Error
- Wait a few minutes and retry
- Check the API Status Page
- If persistent, contact support with:
- The exact endpoint you’re calling
- Request parameters
- Timestamp of the error
Error handling best practices
JavaScript/TypeScript
Python
Quick reference table
| Error Code | Common Cause | Quick Fix |
|---|---|---|
| 401 | Missing/invalid token | Check Settings > API Tokens |
| 400 | Invalid parameters | Verify parameter values |
| 403 | Wrong page type | Specify exact page type |
| 404 | Content not published | Publish the content |
| 429 | Too many requests | Check usage, reduce calls, wait for monthly reset |
| 500 | Server issue | Wait and retry, check status |
Related resources
Common Errors
Step-by-step solutions for common issues
Debugging Guide
How to debug your integration
API Reference
Full API documentation
Contact Support
Get help from our team