HTTP Status Codes
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.