Diddoβs API follows standard HTTP conventions and returns structured error responses to help you debug and recover from failed requests.
This section covers:
- Error response format
- Recoverable errors
- Non-recoverable errors
- HTTP status codes
- Testing error responses
π§Ύ Error Response Format
All error responses follow a consistent structure:
json
β»οΈ Recoverable Errors
Status Code | Meaning | Retry Guidance |
---|---|---|
429 | Rate limited | Use exponential backoff |
500 | Server issue | Retry after short delay |
503 | Service unavailable | Retry later |
β Non-Recoverable Errors
Status Code | Meaning | Resolution |
---|---|---|
400 | Malformed input or invalid parameters | Check and fix input |
401 | Missing or invalid API key | Provide valid credentials |
403 | Authenticated but not authorized | Verify access permissions |
π HTTP Status Codes
Status Code | Meaning |
---|---|
200 | OK β Request succeeded |
201 | Created β Resource successfully created |
400 | Bad Request β Invalid input or malformed request |
401 | Unauthorized β Missing or invalid API Key |
403 | Forbidden β Authenticated, but lacking permissions |
404 | Not Found β Resource does not exist |
409 | Conflict β Resource already exists or in conflicting state |
422 | Unprocessable Entity β Validation failed on input fields |
429 | Too Many Requests β Rate limit exceeded |
500 | Internal Server Error β Something went wrong on our end |
π§ͺ Test Error Responses π
You can simulate error responses in sandbox mode by using test tokens or deliberately invalid inputs (e.g. missing fields, wrong IDs).