Error codes
Responses carry code and message. Frontend branching is based on code.
Code ranges
| Range | Meaning |
|---|---|
| 0 | Success |
| 1xxx | Parameter and validation errors |
| 2xxx | Authentication and authorization errors |
| 3xxx | Missing resource or state conflict |
| 4xxx | External channel failure |
| 5xxx | Internal server error |
Common errors
| Code | Meaning | Suggested action |
|---|---|---|
| Unauthenticated | Token missing or expired | Refresh or log in again |
| Forbidden | Capability code or data scope insufficient | Check role and scope settings |
| Invalid parameter | Field invalid | Correct the request per message |
| Send failed | External channel unavailable | Retry or check configuration |
INFO
Error responses do not expose stack traces or sensitive details, avoiding use as a probing tool.
