HTTP Status Codes
| Status | Meaning | Common Cause |
|---|---|---|
200 OK | Request succeeded | — |
401 Unauthorized | Authentication failed | Missing or invalid Bearer token |
403 Forbidden | Access denied | Token valid but lacks required permissions |
422 Unprocessable Entity | Validation error | Missing audio field or invalid file format |
500 Internal Server Error | Server error | Transient issue — retry with backoff |
Validation Errors (422)
When your request is missing required fields or contains invalid data, Dolva returns a422 response with a detailed error body:
422 Validation Error
detail describes one validation failure:
loc— where the error occurred (e.g.,["body", "audio"]means theaudiofield in the request body is the problem)msg— a human-readable description of the errortype— a machine-readable error type string
- The
audiofield is missing from yourmultipart/form-datarequest - The file is empty or corrupt
- The content type is not recognized as audio
Handling Errors in Code
Retrying on Server Errors
For5xx errors, implement exponential backoff: wait 1s before the first retry, 2s before the second, 4s before the third, and so on. Most transient server errors resolve within a few seconds.
Checking API Health
Before sending large batches of requests, you can verify that the Dolva API is reachable by calling the health endpoint (no authentication required):curl
200 OK response confirms the API is up. See the Health endpoint reference for details.
Authentication
Troubleshoot 401 errors and token setup.
Health Endpoint
Check API availability before batch operations.