All ArticlesSystem Architecture•November 13, 2026•8 min read

Elevated Errors on claude.ai, Claude Code & platform.claude.com: A System Architecture Analysis

When three Claude surfaces report elevated errors at once, it is rarely three bugs — it is one shared dependency with three viewports. This analysis maps the control-plane/data-plane split, decodes the HTTP error taxonomy, and ships a production-grade retry layer that survives a degraded inference tier.

Elevated Errors on claude.ai, Claude Code & platform.claude.com: A System Architecture AnalysisAI Generated with Qwen 3.0 via CometAPI

When status.anthropic.com flips a component to Elevated Errors for claude.ai, Claude Code, and platform.claude.com simultaneously, the interesting engineering question is not is it down? — it is which shared dependency just failed, and what does the blast radius reveal about the topology? That framing changes how you design clients, how you read a status page, and how you write a runbook.

This article breaks down the architecture behind those three surfaces, decodes Anthropic's error contract, and provides a copy-pasteable resilience layer that behaves correctly during a partial degradation rather than amplifying it.

The Shared Substrate Behind Three Different Products

Claude.ai, Claude Code and platform.claude.com are separate products with distinct trust boundaries, control planes and failure semantics — yet all three converge on a single bottleneck: the inference data plane. A simultaneous page is almost never three independent bugs; it is one shared dependency rendered through three different user interfaces.

claude.ai: a full-stack BFF in front of the model

The browser path is roughly: edge/CDN → web tier (sessions, entitlements, billing) → request orchestrator → model inference → SSE stream back to the client. Two consequences follow. First, failures can surface as an inline banner with a retry affordance, or as a silently stalled stream. Second, because responses stream over Server-Sent Events, an error can arrive after a 200 OK — mid-body. Clients that only inspect the status code will happily render a truncated answer as if it were complete.

Claude Code: local control plane, remote data plane

Claude Code is a harness, not a hosted service. Tool execution — shell commands, filesystem edits, MCP server calls — happens client-side; only model turns cross the network. That asymmetry is the single most important operational fact about it: a 529 overloaded_error mid-turn aborts a step, but side effects already committed locally (files written, commands executed, git state mutated) persist. Claude Code turns are not atomic transactions. Your runbook must assume partial application and verify state before resuming.

platform.claude.com: control plane and data plane split

Console routes — organization and project settings, API key management, usage dashboards, billing — are CRUD operations: read-heavy, cacheable, and rarely load-bearing for production traffic. The data plane is api.anthropic.com/v1/messages. An elevated-error banner that includes the Console almost always indicates the shared authentication/entitlement service or the API gateway degraded, not that a CRUD database fell over.

Why all three light up together

Every request — session cookie or API key — passes through authentication, entitlement resolution and rate-limit accounting before it reaches a GPU. Those are the classic correlated-failure vectors described in Google's SRE literature: universally in the hot path, impossible to bypass, and typically backed by a small number of stateful stores. When they degrade, every surface reports errors at once and the product boundaries collapse into one failure domain.

Decoding the Error Taxonomy

Anthropic's API returns structured errors with a type discriminator. Treating them uniformly is the most common production mistake.

HTTPerror.typeMeaningCorrect client action
400invalid_request_errorMalformed body or schema violationDo not retry; fix the payload
401 / 403authentication_error / permission_errorBad key, revoked key, missing scopeDo not retry; page a human
404not_found_errorUnknown model ID or routeDo not retry; fail fast
413request_too_largePayload exceeds limitDo not retry; shrink or chunk
429rate_limit_errorQuota or concurrency exceededBackoff, honor retry-after
500api_errorUnexpected server faultBounded retry
503variesCapacity or maintenanceBounded retry + load shed
504—Gateway timeout upstreamRetry only if side-effect free
529overloaded_errorDeliberate load sheddingBackoff and degrade gracefully

The 529 status is the important one. It is not a timeout or a crash — it is an intentional rejection under load. That makes it a high-quality signal: the system is healthy enough to reject traffic rather than collapse. Clients should treat 529 as a first-class backpressure hint and reduce concurrency, not merely sleep and re-fire. Responses also carry retry-after, plus anthropic-ratelimit-requests-remaining, anthropic-ratelimit-tokens-remaining and the corresponding -reset headers — all of which should feed your scheduler.

Client-Side Resilience: A Reference Retry Layer

Most retry implementations fail in one of three ways: they retry non-retryable statuses, they ignore retry-after, or they retry without jitter and create a thundering herd. The following TypeScript implementation is battle-tested against all three.

ts
import Anthropic from '@anthropic-ai/sdk';

type FailureClass = 'transient' | 'throttled' | 'client' | 'fatal';

interface RetryPolicy {
  maxAttempts: number;
  baseDelayMs: number;
  maxDelayMs: number;
  maxRetryBudgetRatio: number; // cap on retries as share of total calls
}

const RETRYABLE = new Set([408, 409, 425, 429, 500, 502, 503, 504, 529]);

export function classify(err: unknown): FailureClass {
  if (err instanceof Anthropic.APIError) {
    if (err.status === 429) return 'throttled';
    if (err.status === 529) return 'transient';
    if (RETRYABLE.has(err.status)) return 'transient';
    if (err.status >= 500) return 'fatal';
    return 'client';
  }
  // Network resets, DNS failures, TLS handshake failures
  if (err instanceof Anthropic.APIConnectionError) return 'transient';
  return 'fatal';
}

function retryAfterMs(err: unknown): number | null {
  if (!(err instanceof Anthropic.APIError)) return null;
  const raw = err.headers?.get('retry-after');
  if (!raw) return null;
  const seconds = Number(raw);
  if (Number.isFinite(seconds)) return Math.max(0, seconds * 1000);
  const date = Date.parse(raw);
  return Number.isNaN(date) ? null : Math.max(0, date - Date.now());
}

function fullJitter(attempt: number, policy: RetryPolicy): number {
  const ceiling = Math.min(policy.maxDelayMs, policy.baseDelayMs * 2 ** attempt);
  return Math.floor(Math.random() * ceiling);
}

const sleep = (ms: number) => new Promise<void>((r) => setTimeout(r, ms));

export async function withRetry<T>(
  fn: () => Promise<T>,
  policy: RetryPolicy = { maxAttempts: 5, baseDelayMs: 500, maxDelayMs: 20_000, maxRetryBudgetRatio: 0.2 },
): Promise<T> {
  let lastError: unknown;

  for (let attempt = 0; attempt < policy.maxAttempts; attempt++) {
    try {
      return await fn();
    } catch (err) {
      lastError = err;
      const kind = classify(err);
      if (kind === 'client' || kind === 'fatal') throw err;

      if (attempt === policy.maxAttempts - 1) break;

      // Server-provided backoff always wins over local jitter
      const delay = retryAfterMs(err) ?? fullJitter(attempt, policy);
      await sleep(delay);
    }
  }
  throw lastError;
}

The design decisions worth internalizing: retry-after takes precedence over computed backoff because the server knows its own recovery curve; full jitter (not equal jitter) is chosen because correlated retries across thousands of workers are the mechanism by which a blip becomes a metastable outage; and the budget ratio exists so that during a sustained incident your retry traffic cannot exceed a fixed fraction of your normal concurrency.

Streaming Failures Need a Different Contract

SSE changes the failure model. The Messages API is stateless per request and there is no resume cursor for a partially delivered completion. Once tokens have been emitted and the stream terminates with an event: error carrying overloaded_error, the partial output is not resumable — resubmitting produces a different completion.

Practical rules:

  • Never persist model output until the stream emits message_stop; treat partial buffers as uncommitted.
  • Checkpoint tool state before starting a turn, not after.
  • Because the API has no idempotency-key mechanism for completions, a retried request may re-emit a tool call. Deduplicate side effects at the tool executor, not at the HTTP layer.

Instrumenting the Blast Radius in CI

During a degraded window, deploys that depend on the model should be gated on a cheap probe rather than discovering the outage via test failures.

bash
#!/usr/bin/env bash
# probe.sh -- classify Anthropic data-plane health for CI gating
set -euo pipefail

readonly ENDPOINT='https://api.anthropic.com/v1/messages'
readonly PAYLOAD='{"model":"claude-sonnet-4-5","max_tokens":8,"messages":[{"role":"user","content":"ping"}]}'
readonly MAX_ATTEMPTS=4

for attempt in $(seq 1 "$MAX_ATTEMPTS"); do
  code=$(curl -sS -o /tmp/body.json -D /tmp/h.txt -w '%{http_code}' --max-time 15 \
    -X POST "$ENDPOINT" \
    -H "x-api-key: ${ANTHROPIC_API_KEY}" \
    -H 'anthropic-version: 2023-06-01' \
    -H 'content-type: application/json' \
    -d "$PAYLOAD") || code=000

  case "$code" in
    200) echo 'data plane healthy'; exit 0 ;;
    429|500|502|503|504|529)
      ra=$(awk -F': ' 'tolower($1)=="retry-after"{print $2}' /tmp/h.txt | tr -d '\r')
      delay=${ra:-$(( 2 ** attempt ))}
      echo "attempt ${attempt}: HTTP ${code}, sleeping ${delay}s"
      sleep "$delay" ;;
    000) echo 'connection failure'; sleep "$(( 2 ** attempt ))" ;;
    *) echo "non-retryable HTTP ${code}"; cat /tmp/body.json; exit 2 ;;
  esac
done

echo 'data plane degraded after retries'; exit 1

Emit the resulting exit code as a metric with OpenTelemetry HTTP semantic conventions so your dashboards align with vendor telemetry and cross-team SLOs.

Rate-Limit Math and Metastable Failure

Retry amplification is deterministic and brutal. At 200 requests/second with a 5-attempt policy and no budget cap, a degraded backend receives up to 1,000 requests/second — precisely when it has the least capacity. This is the textbook path from a transient blip to a metastable failure described in Release It! and AWS's Builder's Library.

Mitigations that actually work:

  • Token-bucket retries. Allocate retries their own concurrency budget (e.g. 20% of pool size).
  • Circuit breaker with half-open probing. Open after N consecutive 5xx/529 responses; admit a single probe request after cooldown.
  • Deadline propagation. Cap total wall-clock (retries + backoff) below your upstream caller's timeout, or you will fail twice.
  • Adaptive concurrency. On 529, halve in-flight requests — the server is explicitly telling you to.

Operational Runbook Checklist

  • Confirm scope on the status page: which components are affected, not just the banner headline.
  • Distinguish control-plane failures (Console/UI, cosmetic) from data-plane failures (API, breaking).
  • Verify your error mix: a shift from 429 to 529 means quota exhaustion became capacity shedding.
  • Open circuit breakers and shed non-critical workloads (batch jobs, evals, summarization backfills) first.
  • Freeze deploys that depend on model output; run the probe above as a gate.
  • For Claude Code users: snapshot working state before resuming an interrupted turn.
  • Record time-to-detect and time-to-degrade; both belong in your postmortem, not just time-to-restore.

Pitfalls That Turn a Blip Into an Outage

  • Retrying 400s and 401s. Guarantees the same failure with more traffic.
  • Blind retries over non-idempotent tool execution. Duplicate file writes and double-executed commands.
  • Ignoring `retry-after`. The server publishes its recovery expectation; overriding it with your own curve is malpractice.
  • Unjittered backoff. Synchronized retries reproduce the original spike at every interval.
  • Treating the status page as ground truth. Component granularity lags real impact — trust your own probes.
  • Generous timeouts. A 120-second timeout on a 30-second upstream budget means you never fail over.
  • No partial-output handling. Persisting a truncated stream as a completed artifact is silent data corruption.

Sources & Technical References

2 views•0 comments

Discussion (0)

Join the conversation

Loading comments...

Continue Reading

More production-grade engineering deep dives and architectural guides

Explore all articles