Stream: implementers
Topic: OperationOutcome in a bundle?
Adam Hatherly (Dec 20 2017 at 14:49):
Hi, if I do a restful search operation and an error occurs, should the OperationOutcome that is returned be wrapped in a bundle (for consistency with result returned from a successful search), or should I just get an unwrapped OperationOutcome back? I've read through the relevant parts of the spec but it seems ambiguous on this point?
Lloyd McKenzie (Dec 20 2017 at 15:58):
If the operation fails entirely, you return just an OperationOutcome. If it succeeds, you may get back a Bundle that may have an OperationOutcome that conveys warnings.
Adam Hatherly (Dec 20 2017 at 16:22):
Brilliant - thanks. I suspected that might be the case but it wasn't explicit in the spec.
Last updated: Apr 12 2022 at 19:14 UTC