Skip to main content

Error Handling

The Voicy API uses conventional HTTP status codes to indicate success or failure of requests.

Error Response Format

All error responses follow this format:

HTTP Status Codes

Success Codes

Client Error Codes

Server Error Codes

Common Errors

Best Practices

Retry Logic

Retry rate limits (429) after the Retry-After seconds the response gives, and transient server errors (5xx) with exponential backoff:

Error Logging

Log errors with context for debugging:

User-Friendly Messages

Map API errors to user-friendly messages: