Error Handling
Cambio Open Services uses standard http codes for all FHIR APIs, see table below for some common examples. For API-specific error handling, refer to each API's documentation in the Resources section.
| Code | Description | Comment |
|---|---|---|
| 200 | OK! | Successful operation |
| 201 | Data created | Data was successfully created in server |
| 400 | Bad Request | Invalid Request/Invalid Query Parameters |
| 401 | Unauthorized | The authentication is required to perform the requested operation |
| 403 | Forbidden | User doesn't have sufficient priviledges to perform the requested operation |
| 404 | Not found | The requested resource was not found |
| 422 | Unprocessable Entity | The resource is not complient with the profile |
| 500 | Internal Error | The operation could not be performed due to an Internal server error |
| 501 | Not Implemented | The requested operation is not implemented |
General Example of Error Message
The exampel below is an example of an error message, where the date/time format is invalid.
| OperationOutcome |
| issue |
| severity : error |
| code : processing |
| diagnostics : Invalid date/time format: "2020-13-20" |