From 947289973690a61b1c75d7fce0faf37d4ca30203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 28 May 2026 10:21:29 +0200 Subject: [PATCH] chore(meds): drop a forwarder and a reserved-code branch the audit flagged Removes the 402 / 423 spare-code branch in the natural-language extractor; the route surfaces budget exhaustion through the standard error envelope, so the inline comment was an unused shim. The recapCadence single-call wrapper was already retired alongside the empty day-detail step. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../medications/scheduling/NaturalLanguageExtractor.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/medications/scheduling/NaturalLanguageExtractor.tsx b/src/components/medications/scheduling/NaturalLanguageExtractor.tsx index a555cc8ca..cd9a2d067 100644 --- a/src/components/medications/scheduling/NaturalLanguageExtractor.tsx +++ b/src/components/medications/scheduling/NaturalLanguageExtractor.tsx @@ -157,13 +157,6 @@ export function NaturalLanguageExtractor({ setError({ kind: "noProvider" }); return; } - if (res.status === 402 || res.status === 423) { - // Reserved spare codes — keep the budget branch wired even - // though the route currently surfaces budget exhaustion via - // the apiHandler's HttpError pipeline. - setError({ kind: "budget" }); - return; - } if (!res.ok) { const body = (await res.json().catch(() => null)) as { error?: string;