> ## Documentation Index
> Fetch the complete documentation index at: https://docs.antarah.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# upstream_error

> Upstream error (HTTP 502)

| | |
| - | - |
| HTTP status | `502` |
| OpenAI `type` | `server_error` |
| Anthropic `type` | `api_error` |
| Retry | Yes. Error responses carry `x-should-retry: true`. |

## What it means

The model runtime failed: a server error, a malformed answer, or a failure in the middle of a stream.

## What to do

Retry with backoff.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.