HTTP status 409. Only the Affinity app gets this code.
A held order ends failed or cancelled only from its held panel.
Recovery
End the order from its held panel: resend it, mark it failed, or answer its cancel after you confirm with the pharmacy.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.