Errors and responses
| Status | When |
|---|---|
200 |
Success. The body contains the record, the list, or is empty. |
400 |
Invalid data or a business rule not met (required field, invalid date, record from another company). |
401 |
No token, expired token, user without permission, or contract without the module’s API. |
404 |
Record not found, when the endpoint distinguishes it. |
429 |
Too many requests in a short time, including login attempts. Wait and retry. |
409 |
Conflict with the record’s current state. |
423 |
System under maintenance. The response includes the start time and the expected return. |
Error format:
{ "message": "Invalid date" }During maintenance:
{ "message": "...", "maintenanceStart": "...", "maintenanceReturn": "..." }Treat message as text for logging: it may change without notice. Decide based on the status.