Error Handling
The Nevatal API uses standard HTTP status codes and returns structured error responses.HTTP Status Codes
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request — Invalid parameters or validation error |
401 | Unauthorized — Missing or invalid API key |
403 | Forbidden — API key lacks required scope |
404 | Not Found — Resource doesn’t exist |
409 | Conflict — Resource already exists or state conflict |
422 | Unprocessable Entity — Valid JSON but business rule violation |
429 | Too Many Requests — Rate limit exceeded |
500 | Internal Server Error — Something went wrong on our end |
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
Always check status codes
Don’t assume every response is successful. Check the HTTP status code before processing the body.

