Error Handling
The API returns HTTP status codes to explain whether a request succeeded or failed.
Common Status Codes
| Status Code | Meaning |
|---|---|
| 200 | Request successful |
| 201 | Created successfully |
| 400 | Invalid request |
| 401 | Not authenticated |
| 403 | Permission denied |
| 404 | Resource not found |
| 500 | Server error |
Error Response Example
{
"detail": "Patient not found"
}