Error Handling
The Nevatal API uses standard HTTP status codes and returns structured error responses.HTTP Status Codes
Error response format
Validation errors
When a request fails validation, the response includes details about which fields are invalid:Rate limiting
When rate limited, check theRetry-After header for the number of seconds to wait:
Best practices
1
Always check status codes
Don’t assume every response is successful. Check the HTTP status code before processing the body.
2
Implement retry logic
For
429 and 5xx errors, implement exponential backoff retry logic.3
Log error responses
Log the full error response body for debugging. The
message field is human-readable.
