Guides
Markdown
Error Handling

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 CodeMeaningRetry Guidance
429Rate limitedUse exponential backoff
500Server issueRetry after short delay
503Service unavailableRetry later

❌ Non-Recoverable Errors

Status CodeMeaningResolution
400Malformed input or invalid parametersCheck and fix input
401Missing or invalid API keyProvide valid credentials
403Authenticated but not authorizedVerify access permissions

πŸ” HTTP Status Codes

Status CodeMeaning
200OK β€” Request succeeded
201Created β€” Resource successfully created
400Bad Request β€” Invalid input or malformed request
401Unauthorized β€” Missing or invalid API Key
403Forbidden β€” Authenticated, but lacking permissions
404Not Found β€” Resource does not exist
409Conflict β€” Resource already exists or in conflicting state
422Unprocessable Entity β€” Validation failed on input fields
429Too Many Requests β€” Rate limit exceeded
500Internal 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).


🏷️ Next: Post Purchase β†’