Error Response Format
All API errors follow a consistent format:HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success |
201 | Created successfully |
400 | Bad Request - Invalid input |
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - Insufficient permissions or usage limit exceeded |
404 | Not Found - Resource doesn’t exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Common Errors
401 Unauthorized
401 Unauthorized
403 Forbidden - Usage Limit
403 Forbidden - Usage Limit
Cause: Monthly usage limit exceededSolution: Upgrade your plan or wait until next billing cycle
400 Bad Request - Invalid URL
400 Bad Request - Invalid URL
Cause: Invalid URL formatSolution: Ensure URL includes protocol (http:// or https://)
400 Bad Request - Duplicate Code
400 Bad Request - Duplicate Code
Cause: Custom code already existsSolution: Choose a different custom code
404 Not Found
404 Not Found
Cause: Resource doesn’t existSolution: Verify the resource ID is correct
429 Rate Limit Exceeded
429 Rate Limit Exceeded
Cause: Too many requestsSolution: Wait for the time specified in
retryAfter (seconds)