ReferenceAPI Reference
Error Handling
Error Handling
Error Response Format
All errors follow a consistent format:
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST | 400 | Malformed request body |
VALIDATION_ERROR | 400 | Data validation failed |
UNAUTHORIZED | 401 | Authentication required |
FORBIDDEN | 403 | Insufficient permissions |
NOT_FOUND | 404 | Object or record not found |
CONFLICT | 409 | Unique constraint violation |
INTERNAL_ERROR | 500 | Server error |
DATABASE_ERROR | 500 | Database operation failed |
Example Error Responses
Validation Error:
Permission Error:
Not Found: