HTTP status 409. Only the Affinity app gets this code.
A held order may be at the pharmacy, or the pharmacy may still fill it, so it cannot be failed without the pharmacy's confirmation.
Recovery
Ask the pharmacy. When it confirms that it has no such order, or that it stopped or cancelled the fill, fail the order with confirmedNotAtPharmacy. For a send that the pharmacy did not confirm, Resend reconciles with the pharmacy before it sends again.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.