## Errors ### Errors & HTTP Response Codes | Operation | Validation | HTTP Code | OpOutcome Code | OpOutcome Severity | OperationOutcome.details.text & OperationOutcome.text | |--------------|----------------------------------------|-----------|----------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | GET | Missing security token | 400 | required | error | Missing required security token: PIN | | GET | Failed authentication | 401 | security | error | Authorization is required for the interaction that was attempted | | GET & POST | Rate Limit | 429 | throttled | error | Too Many Requests | | GET & POST | Unhandled Exception | 500 | exception | fatal | Internal Error | | GET | Success | 200 | | | | | GET | Missing patient identifier in URL | 400 | required | error | Missing mandatory search parameter: patient identifier | | GET | Invalid patient identifier in URL | 400 | value | error | Invalid search parameter: patient identifier | | GET | Invalid patient identifier type in URL | 400 | value | error | Invalid search parameter: patient identifier type | | GET | Invalid Request | 400 | invalid | error | Invalid Request | | GET (by ID) | Not found | 404 | not-found | error | Not found: Resource with requested Resource ID | | GET (By ID) | Consent block | 403 | suppressed | error | Some information was not or may not have been returned due to business rules, consent or privacy rules, or access permission constraints. This information may be accessible through alternate processes. | | GET (Search) | Consent block | 200 | suppressed | information | Some information was not or may not have been returned due to business rules, consent or privacy rules, or access permission constraints. This information may be accessible through alternate processes. | | GET (Search) | No matches | 200 | not-found | information | Not found: Resource matching search parameters | | POST | Success | 201 | | | | | POST | Missing required data element | 422 | required | error | Missing required data element: [element-name] | | POST | Invalid value | 422 | value | error | Invalid value: [element-name] | | POST | Reference not found | 422 | not-found | error | The reference provided was not found: [reference-link] | | POST | Invalid code | 422 | code | error | The code or system could not be understood, or it was not valid in the context of a particular ValueSet.code: [code-system|code] | | POST | Invalid Resource | 400 | invalid | error | Invalid Resource |