503 server_is_overloaded

server_is_overloaded is OpenAI's 503 for no capacity right now. Wait for Retry-After and retry, and know it is an InternalServerError, not a RateLimitError.

Checked 2026-11-22

·All fixes·Models

OpenAI's 503 server_is_overloaded means the model has no spare capacity for your request at that moment, not that anything is wrong with the request itself or with your account. OpenAI's guidance is to wait briefly and then try again, honouring a Retry-After header when one is present, and its Python SDK raises this one as an InternalServerError, not a RateLimitError, so a handler that catches only rate-limit exceptions walks straight past it. Against https://api.uplinkswitch.com/v1, a route that answers with a 5xx for gpt-6.1-sol is retried on the next route before the result reaches you, and you see a 503 only when no route answers at all, which is charged nothing.

What it means, per OpenAI's docs

OpenAI's error-codes guide lists this 503 under server_is_overloaded. The meaning is transient capacity: the service is up, but it cannot take more work for your request at that moment, so the correct response is to back off and retry rather than to change the request.

The detail that catches people out is how the SDK classifies it. In the Python library a 503 is raised as InternalServerError, the 5xx family, not as RateLimitError, the 429 family. These read as similar problems to a human, "the service told me to slow down," but they are different exception classes, so a retry wrapper written around RateLimitError alone never fires for a 503. The guide also notes that some overload conditions that once arrived as a 429 now arrive as a 503; video overload is the called-out example of that move. The practical consequence is the same: catch the 5xx family too, or catch on status code, so that an overload cannot slip through whichever shape it takes.

What the gateway changes

These points come from the gateway's published OpenAPI description and its failover behaviour. When a model has more than one route, a route that answers with a 5xx or a 429 is retried automatically on the next route for the same model at the same price, before the failure ever reaches your client. You are billed at the answering route's own price, and a route whose attempt failed before any byte reached you is not charged.

Two different 5xx answers come from the gateway itself, and they are worth telling apart. A 502 api_error, code upstream_error, means the final route it attempted returned a server error of its own, an upstream 529 included. A 503 upstream_unavailable means it had no route left to attempt. Neither relays the provider's own error verbatim; each is the gateway reporting on the upstream, each sends a Retry-After, and neither is billed, so an unanswered overload costs you nothing and tells you how long to wait. For the case where a whole model is down rather than one of its routes, a models list in an OpenAI- or Anthropic-format body names up to five models and hands the request to the next one; the catch worth knowing is that failover to the next model happens only before the first byte of the response has been sent, so a stream that has already started cannot be rescued mid-flight. The answering model in that list is billed at its own price.

There is also a public signal to lean on. A status feed is served at GET https://api.uplinkswitch.com/v1/status, which is where to look when retries keep failing and you want to know whether the overload is broad. Its headers carry a request id too, the reference to give if you raise the issue with support. On the 2026-11-23 catalog gpt-6.1-sol read ok.

How to handle it

  • Catch the right exception. Retry on the 5xx family, or branch on the status code, rather than on RateLimitError alone, so a 503 is actually caught.
  • Honour Retry-After when it is present. Wait the interval the response names before retrying; the gateway's 503 always carries one.
  • Back off and add jitter. Where no interval is given, grow the delay on each attempt and add a little randomness so a fleet of clients does not retry in lockstep and re-saturate the model.
  • Cap the attempts. Stop after a few tries and surface the failure rather than hammering a model that has no capacity.
  • Add a fallback model. A models list lets a whole saturated model be skipped for the next one, which is the lever that matters when the model itself, not just one route, is overloaded. Remember it only helps before the first streamed byte.
  • Check the status feed. When retries keep failing, read GET https://api.uplinkswitch.com/v1/status to see whether the problem is widespread before you keep trying.

This page sits beside the retry-and-failover material in LLM failover, which owns the general treatment of transient 5xx and 429 responses. The Anthropic analogue, an upstream that is temporarily full, is covered by Claude API 529 overloaded; link across to it if you run both providers, since the backoff shape is the same even though the status code differs.

Questions and answers

Because a 503 is not a 429. OpenAI's Python SDK raises server_is_overloaded as InternalServerError, the 5xx family, while RateLimitError covers 429s. A retry wrapper built around RateLimitError alone never fires for a 503, which is why some overloads, including the video case that moved from 429 to 503, slip through. Catch the 5xx family or branch on the status code.

Follow the Retry-After interval when the response names one; the gateway's 503 always sends it, and OpenAI's may. Where none is given, back off with a delay that grows on each attempt and carries some jitter, and stop after a few tries rather than retrying a saturated model indefinitely.

No. Per the gateway's OpenAPI description, a 503 upstream_unavailable means no route answered, and nothing is charged for it; a route whose attempt failed before any byte reached you is likewise not billed. You pay only the answering route or model, at its own price.
Join on Telegram
Help