Error Responses
The FHIR API follows the FHIR specification for error handling, returningOperationOutcome resources for errors.
HTTP Status Codes
The server uses standard HTTP status codes:200 OK- Successful operation201 Created- Resource created successfully204 No Content- Successful deletion or HEAD request400 Bad Request- Invalid request (malformed syntax, validation errors)401 Unauthorized- Authentication required403 Forbidden- Insufficient permissions404 Not Found- Resource not found405 Method Not Allowed- HTTP method not supported for endpoint409 Conflict- Version conflict (e.g., during update)410 Gone- Resource was deleted412 Precondition Failed- Conditional operation failed422 Unprocessable Entity- Business rule violation500 Internal Server Error- Server error
OperationOutcome Format
Errors are returned asOperationOutcome resources: