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) <noreply@anthropic.com>
This commit is contained in:
Marc-André BombeckandClaude Opus 4.7 committed 2026-05-28 10:23:28 +02:00
1 parent a730ebf07b
commit 9472899736
1 file changed
-7
@@ -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;