Error Handling
The API uses conventional HTTP response codes to indicate the success or failure of a request.
Status Codes
200 OK- Request succeeded201 Created- Resource was successfully created400 Bad Request- Request was malformed or invalid401 Unauthorized- Authentication failed or token missing403 Forbidden- Authentication succeeded but user lacks permissions404 Not Found- Requested resource doesn't exist500 Internal Server Error- Server error occurred
Error Response Format
Error responses will include a message explaining what went wrong:
{
"error": "Detailed error message here"
}
Common Error Scenarios
To be added later