HTTP Status Codes
Pixel Patrol uses standard HTTP status codes to indicate success or failure:Status Code | Meaning |
---|---|
200 | Success - Request completed successfully |
400 | Bad Request - Invalid request data |
401 | Unauthorized - Invalid or missing site key |
403 | Forbidden - Access denied (limits exceeded, no subscription) |
404 | Not Found - Resource doesn’t exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Something went wrong on our end |
Error Response Format
All error responses follow a consistent JSON format:Common Errors
Invalid Site Key
401 Unauthorized
Solutions:
- Verify your site key format:
site_xxxxxxxxxxxxxxxxxxxx
- Check that the site key exists in your dashboard
- Ensure the site key hasn’t been rotated or disabled
Missing Required Fields
400 Bad Request
Solutions:
- Include the
api_key
field in your request body - Provide either
body
(text) orcontent_url
(image URL) - Check field names match the API specification exactly
Moderation Limit Exceeded
403 Forbidden
Solutions:
- Upgrade your subscription plan
- Wait for your monthly limit to reset
- Contact support for temporary limit increases
No Active Subscription
403 Forbidden
Solutions:
- Subscribe to a paid plan in your dashboard
- Ensure your payment method is valid and current
- Contact billing support if you believe this is an error
Rate Limit Exceeded
429 Too Many Requests
Solutions:
- Implement exponential backoff retry logic
- Reduce request frequency
- Use the
Retry-After
header value for timing
Media Not Found
404 Not Found
Solutions:
- Verify the
media_id
orapp_media_id
is correct - Ensure the media belongs to your site
- Check that the media wasn’t deleted
Content Too Large
400 Bad Request
Solutions:
- Reduce text content size to under 100KB
- For images, ensure files are under 10MB
- Consider splitting large content into smaller chunks
Invalid URL
400 Bad Request
Solutions:
- Ensure the URL is publicly accessible
- Verify the URL points to a supported image format (JPEG, PNG, GIF, WebP)
- Check that the image server allows external access
Error Handling Best Practices
1. Implement Retry Logic
2. Validate Input Before Sending
3. Handle Specific Error Types
Getting Help
If you encounter errors not covered here:- Check the API status page for known issues
- Review your request format against the OpenAPI specification
- Contact support@pixelpatrol.net with:
- Your site key (last 4 characters only)
- The exact request you’re making
- The full error response
- Timestamp of when the error occurred