Error Handling
The API returns standard HTTP status codes and JSON error bodies.Error Response Format
| Field | Description |
|---|---|
statusCode | HTTP status code |
message | Error message (string or array) |
error | Short error label |
Common Status Codes
| Code | Meaning |
|---|---|
200 | OK — request succeeded |
201 | Created — resource created |
400 | Bad Request — validation failed |
401 | Unauthorized — missing or invalid token |
403 | Forbidden — insufficient permissions |
404 | Not Found — resource does not exist |
429 | Too Many Requests — rate limit exceeded |
500 | Internal Server Error — unexpected server failure |
Validation Errors
The API usesclass-validator with ValidationPipe. Invalid request bodies return a 400 with an array of messages describing each field error.