<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Anthropic Not_found_error on RockB</title><link>https://baeseokjae.github.io/tags/anthropic-not_found_error/</link><description>Recent content in Anthropic Not_found_error on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 25 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/anthropic-not_found_error/index.xml" rel="self" type="application/rss+xml"/><item><title>Model Retirement Errors: Why 'Model Not Found' Is Permanent and Your Retry Loop Cannot Tell</title><link>https://baeseokjae.github.io/posts/model-retirement-error-handling-2026/</link><pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate><guid>https://baeseokjae.github.io/posts/model-retirement-error-handling-2026/</guid><description>None of the three providers checked publishes a retirement-specific error body: Anthropic&amp;#39;s documented 404 is a generic not_found_error, Ollama says &amp;#39;model not found&amp;#39; for typos and deleted tags alike, and Google publishes dates but no body. A frozen six-row fixture shows why a retry loop cannot tell permanence from a typo, and a two-policy replay measures the cost.</description><content:encoded><![CDATA[<p>An agent pipeline pins a model identifier and the provider retires it. From that moment every call fails with an error envelope that looks exactly like a typo: a plain HTTP 404 whose message names the request, not the lifecycle. The pipeline retries with backoff, spends its budget on a request that can never succeed, and fails the task with &ldquo;provider error&rdquo;. The fix is not a better error message — none of the three providers checked publishes one. It is to stop reading permanence out of the body, decide it from a pinned-ID record plus a published shutdown date, and prove before the next retirement that the retry policy actually stops.</p>
<h2 id="what-the-absent-model-envelope-contains-per-provider">What the absent-model envelope contains, per provider</h2>
<p>Three providers were checked against their own documentation on 2026-11-01. None of them publishes a response body that says a model was retired.</p>
<table>
	<thead>
			<tr>
					<th>Provider</th>
					<th>Documented status and type</th>
					<th>Documented text</th>
					<th>Names retirement?</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Anthropic</td>
					<td>404 <code>not_found_error</code></td>
					<td>&ldquo;The requested resource was not found. Check the endpoint path and any resource IDs in the request URL.&rdquo;</td>
					<td>No</td>
			</tr>
			<tr>
					<td>Ollama (local server)</td>
					<td>404, <code>error</code> string</td>
					<td><code>model '&lt;name&gt;' not found</code></td>
					<td>No</td>
			</tr>
			<tr>
					<td>Google Gemini</td>
					<td>not documented as a response at all</td>
					<td>shutdown is &ldquo;completely turned off, and the endpoint is no longer available&rdquo;</td>
					<td>No body published</td>
			</tr>
	</tbody>
</table>
<p>The Anthropic row is quoted from the Messages API error reference at <a href="https://platform.claude.com/docs/en/api/errors">https://platform.claude.com/docs/en/api/errors</a>: a 404 for a missing resource is the generic <code>not_found_error</code>, and the documented remedy is to check the endpoint path and any resource IDs in the request URL — advice that points away from a lifecycle diagnosis. The table quotes the page&rsquo;s 404 bullet; the replayed envelope below is the page&rsquo;s example response body for the same error (<code>{&quot;type&quot;:&quot;error&quot;,&quot;error&quot;:{&quot;type&quot;:&quot;not_found_error&quot;,&quot;message&quot;:&quot;The requested resource could not be found.&quot;}}</code> with a <code>request_id</code>), so the two strings differ even though both come from that one page. The Ollama row is quoted from the vendor&rsquo;s own HTTP handler in <a href="https://raw.githubusercontent.com/ollama/ollama/main/server/routes.go">https://raw.githubusercontent.com/ollama/ollama/main/server/routes.go</a>, which returns <code>http.StatusNotFound</code> with <code>fmt.Sprintf(&quot;model '%s' not found&quot;, req.Model)</code>; the same file returns <code>&quot;model %q not found, try pulling it first&quot;</code> on another path. Both strings are produced for a typo, an unpulled tag and a deleted tag without distinction. The Google row comes from <a href="https://ai.google.dev/gemini-api/docs/deprecations">https://ai.google.dev/gemini-api/docs/deprecations</a>, which states that a shut-down model is &ldquo;completely turned off, and the endpoint is no longer available&rdquo; and tabulates shutdown dates per model, but publishes no status code, error type or body for a call that hits one.</p>
<p>A fourth provider, OpenAI, was attempted and is reported as an access limitation rather than as absence: its error-codes page returned content but no <code>model_not_found</code> section to extraction, so nothing from it is quoted here. The absence of a published retirement body is a finding about the pages that were checked on 2026-11-01, not a proof about every API surface.</p>
<p>For local servers the case is even plainer. Ollama&rsquo;s API documentation notes that the API &ldquo;isn&rsquo;t strictly versioned&rdquo; and that &ldquo;deprecations are rare and will be announced in the release notes&rdquo; (<a href="https://docs.ollama.com/api">https://docs.ollama.com/api</a>). A missing tag there is an operator event — a deleted model, a pulled-later tag, a typo — not a provider announcement, and the server has no scheduled retirement mechanism to announce.</p>
<h2 id="three-causes-one-byte-identical-body">Three causes, one byte-identical body</h2>
<p>The practical consequence is that the envelope cannot separate the causes. In the frozen fixture behind this article, the row labelled &ldquo;retired model&rdquo; and the row labelled &ldquo;bad endpoint path&rdquo; are byte-identical: both are HTTP 404 with <code>error.type = not_found_error</code>, and the two bodies hash to the same SHA-256, <code>449f8c0d7617…</code>. The third row, Ollama&rsquo;s missing tag, differs only because the provider returns an untyped string instead of a typed object.</p>
<p>That single fact decides the design. A classifier that reads only the body can answer &ldquo;is this model permanently unavailable, or is it transient?&rdquo; It cannot answer &ldquo;retired, or typo?&rdquo; — and any tool that claims to is labelling a cause it did not observe. The per-row body hashes and the classifier&rsquo;s decision field for each row are in <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/out/classification.csv">classification.csv</a>, one row per fixture; the raw run record carrying the same array is <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/out/results.json">results.json</a>. The retry CSV linked below has the request counts, not those fields.</p>
<h2 id="where-permanence-actually-lives">Where permanence actually lives</h2>
<p>Permanence has two components, and neither is in the response.</p>
<p>The first is the pipeline&rsquo;s own record: the exact identifier that was pinned, when it was pinned, and whether anything deployed since then changed it. A dated ID such as <code>qwen3:8b-2026-05</code> or a hosted alias is an input to the diagnosis, not a derived fact.</p>
<p>The second is a provider-published shutdown date, and two of the three providers checked publish one. Google&rsquo;s deprecations page lists a shutdown date per model and marks already-shutdown models, with the caution that the listed dates &ldquo;indicate the earliest possible dates on which a model might be retired&rdquo;. Anthropic&rsquo;s deprecations page is the more explicit calendar (<a href="https://platform.claude.com/docs/en/about-claude/model-deprecations">https://platform.claude.com/docs/en/about-claude/model-deprecations</a>, re-checked 2026-11-25): it defines &ldquo;Retired: The model is no longer available for use. Requests to retired models fail.&rdquo;, carries per-model tables with the columns Retirement date, Deprecated model and Recommended replacement — for example November 30, 2026 for <code>claude-sonnet-4-5-20250929</code> against <code>claude-sonnet-5-5</code>, and August 5, 2026 for the already-retired <code>claude-opus-4-1-20250805</code> — and promises that impacted customers &ldquo;will always be notified by email and in the documentation&rdquo;, with at least 60 days&rsquo; notice for publicly released models. It also scopes itself: the dates cover Anthropic-operated platforms, while Amazon Bedrock and Google-managed Claude &ldquo;set their own retirement schedules&rdquo;, so the same model can carry a different date on a partner platform. And even these dates are floors in places — <code>claude-haiku-4-5-20251001</code> is listed as Active with its retirement-date cell reading &ldquo;Not sooner than October 15, 2026&rdquo; — so an automated check compares a date, never a status label. Ollama publishes no calendar at all: its API documentation says only that &ldquo;deprecations are rare and will be announced in the release notes&rdquo;. What none of the three publishes is the other half — a response body for a call to a retired model; Anthropic says such requests fail and documents the generic 404 instead, which is exactly what the fixture replays. That is why the confirm step in the fixture is written as a recorded human/registry lookup against a published date rather than an API call.</p>
<p>The combined rule is therefore: an envelope classifies the request as permanently unavailable, and the pinned ID plus a shutdown date confirms that the cause is retirement. Neither half is sufficient alone, and the article says so rather than inferring retirement from a 404.</p>
<h2 id="what-the-retry-policy-does-with-each-class">What the retry policy does with each class</h2>
<p>The retry question is measurable, and the answer depends entirely on which policy is running. Two policies were replayed against the same six frozen envelopes over an in-process mock server on 2026-11-19T08:45:56Z–08:46:02Z (the same script and envelope set as the 2026-11-01 measurement, re-executed after the label timestamp was corrected). <code>retry_all</code> retries any non-success; <code>no_retry_4xx</code> retries only 408, 409, 429 and 5xx, with a three-attempt cap and 200 ms doubling backoff.</p>
<table>
	<thead>
			<tr>
					<th>Policy</th>
					<th>Requests for a model-unavailable row</th>
					<th>Requests for a transient row</th>
					<th>Distinguishes them?</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td><code>retry_all</code></td>
					<td>3</td>
					<td>3</td>
					<td>No</td>
			</tr>
			<tr>
					<td><code>no_retry_4xx</code></td>
					<td>1</td>
					<td>3</td>
					<td>Yes</td>
			</tr>
	</tbody>
</table>
<p>Request counts are the server-side counts, not the client&rsquo;s intentions, and the two policies produce identical counts on the absence row and the transient row under <code>retry_all</code> — which is the amplification the article is about. The fixture also carries a 429 control row that the classifier puts in its own <code>rate_limit</code> class, and both policies retry it: that is correct for a throttle, and it is why the absence cell in the table is measured only against 404s. Under <code>no_retry_4xx</code> the permanent 404 costs one request and the transient 503 still gets its three attempts, with wall times in the 600 ms range for the retried cells and effectively zero for the single-attempt cells. That is not a latency benchmark; the backoff is fixed at 200 ms doubling and the server is local, so the timings only show that the retry arms actually waited.</p>
<p>Read the table as a policy statement, not a provider one: the separation comes from the HTTP status, which is 404 for both classes of absence. It tells you &ldquo;do not retry this&rdquo; — it does not tell you &ldquo;this model was retired&rdquo;. Pipelines that retry every error, including the many built on generic HTTP clients with naive backoff, convert a permanent condition into three paid requests and a slower failure.</p>
<h2 id="a-fixture-you-can-freeze-before-the-next-retirement">A fixture you can freeze before the next retirement</h2>
<p>The fixture is six envelopes: three verbatim from vendor documentation or vendor source, three synthesised to spec as control rows and excluded from the verbatim figures. The label file declares the time it was written and ships with its own hash, and the harness recomputes that hash and derives the ordering against the run start from the declared timestamp instead of asserting it — so a relabel after the fact is visible in the record rather than invisible in a claim.</p>
<p>The whole check is one directory and runs offline, standard library only, with no keys and no network access:</p>
<pre tabindex="0"><code>cd research/evidence/model-retirement-error-handling-2026/reproduction
python3 compare.py
</code></pre><ul>
<li>Layout, provenance and scope: <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/README.md">README.md</a></li>
<li>Two-policy comparison harness, starts its own loopback server: <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/compare.py">compare.py</a></li>
<li>Frozen labels and their hash, written before the run: <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/labels.json">labels.json</a> and <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/labels.sha256">labels.sha256</a></li>
<li>The six envelopes, each carrying <code>verification</code> and <code>source_url</code>: <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/envelopes/anthropic_retired_model.json">envelopes/</a></li>
<li>Per-row classification (label, prediction, decision field, body sha256): <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/out/classification.csv">out/classification.csv</a></li>
<li>Per-cell results (fixture, policy, class, server requests, client attempts, wall time, final status): <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/out/retry-policy-compare.csv">out/retry-policy-compare.csv</a></li>
<li>Full run record with server timestamps and isolation notes: <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/out/results.json">out/results.json</a></li>
<li>Relocation and re-execution record for this layout, 2026-11-25: <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/model-retirement-error-handling-2026/reproduction/verification-2026-11-25.json">verification-2026-11-25.json</a></li>
</ul>
<p>The figures in this article come from the 2026-11-01 and 2026-11-19 runs, whose records stay as written in the same evidence directory. The layout was consolidated under <code>reproduction/</code> on 2026-11-25 and the same script re-executed from its new paths: identical envelopes by hash, 3 of 3 verbatim rows and 6 of 6 rows correct under the two in-scope classes, 3 and 3 requests under <code>retry_all</code>, 1 and 3 under <code>no_retry_4xx</code>. That is a layout check recorded in <code>verification-2026-11-25.json</code>, not a new measurement window, and it does not change any date reported above.</p>
<p>To reuse it, replace the envelopes with your own provider&rsquo;s documented bodies, keep the label file separate and hash it, and run the comparison before the next deprecation window rather than during it. The one rule worth copying is the label vocabulary: <code>model_unavailable</code> versus <code>transient</code>, not <code>retired</code> versus <code>typo</code>. The former is observable from the envelope; the latter is a cause you will get wrong exactly when it matters.</p>
<h2 id="limits">Limits</h2>
<p>Six rows is a small fixture, and only three of them are verbatim; the synthesised control rows are labelled as such and are never counted in the verbatim figures. Classification scored 3 of 3 on the verbatim rows and 6 of 6 across all six under the two in-scope classes, with no <code>unknown</code> predictions — but that is a property of a six-row fixture, not an accuracy claim about production traffic. No live provider API was called: no keys were used, no paid requests were made, and nothing here measures real provider latency, cost or error text under load. Wall times reflect a fixed 200 ms doubling backoff against a loopback server.</p>
<p>The demand side is deliberately thin. Nine sampled search impressions across three rows, one of them the retirement-shaped string <code>the model 'z-ai/glm-5.3' has reached its end of life on 2026-10-28t08:00:00z and is no longer available.</code> on 2026-10-30 with 5 impressions and 0 clicks, are recorded as an observation that prompted the fixture — an editorial experiment, not evidence of volume. Search-console data for the same property held no query row containing retirement or deprecation language, which is an artefact of top-row coverage rather than proof of zero demand.</p>
<p>Two of the three providers checked publish retirement dates, in two different shapes: Google&rsquo;s page gives one shutdown date per model with an &ldquo;earliest possible&rdquo; caution, Anthropic&rsquo;s gives dated per-model tables plus partner-platform caveats, and neither publishes a retirement-specific response body; Ollama publishes no calendar at all. So the confirm-permanence step is a comparison against a published date together with the pipeline&rsquo;s own pinned-ID record — and where no calendar exists, a dated operator note is the honest substitute. A wider sweep would likely find more calendars, and possibly an absent-model body worded differently; nothing here claims otherwise.</p>
<h2 id="what-to-do-when-the-classifier-fires">What to do when the classifier fires</h2>
<p>Treat <code>model_unavailable</code> as a stop signal, not a retry signal: fail the task fast, mark the pinned identifier as blocked, and record the envelope hash. Then confirm the cause from the provider&rsquo;s shutdown page and the pipeline&rsquo;s own ID history, and only then choose a replacement. The migration itself is a different problem — the step-by-step examples live in the <a href="/posts/claude-opus-4-8-to-fable-5-migration-guide-2026/">Claude model migration guide</a> and the <a href="/posts/openai-assistants-api-migration-responses-api-2026/">Assistants API to Responses API migration guide</a>; the provider whose retirement string appears in the observed search row is covered end to end in the <a href="/posts/z-ai-api-developer-guide-2026/">Z.ai API developer guide</a>, including the pricing and setup detail this article deliberately does not repeat.</p>
<p>For the surrounding containment — how to stop an agent loop from spending after a terminal failure — the <a href="/posts/agent-cost-circuit-breaker-pattern-guide-2026/">agent cost circuit breaker pattern</a> is the mechanism this classification feeds. For call-site mechanics and error handling at the tool boundary, see the <a href="/posts/llm-function-calling-tool-use-guide-2026/">function calling and tool use guide</a>. Fallback model selection is out of scope here: this is the detection half, which decides when a fallback is even warranted.</p>
]]></content:encoded></item></channel></rss>