Currently, exceptions like ResourceNotFound are not inherited from OperationOutcome. Some FHIR servers (e.g. Aidbox) returns 404 with content of OperationOutcome.
The issue is that not every NotFound is OperationOutcome, e.g. if FHIR server does not return OperationOutcome.. In this case OperationOutcome(reason=response.text) might be used
Currently, exceptions like ResourceNotFound are not inherited from OperationOutcome. Some FHIR servers (e.g. Aidbox) returns 404 with content of OperationOutcome.
The issue is that not every NotFound is OperationOutcome, e.g. if FHIR server does not return OperationOutcome.. In this case
OperationOutcome(reason=response.text)might be used