# upstream_timeout

> upstream_timeout (504): the data service did not answer the gateway in time.

Canonical: https://corpoapi.com/errors/upstream_timeout

HTTP 504 · Gateway timeout

The data service did not answer the gateway in time.

## Why it happens

The service was overloaded or a storage read stalled.

## How to fix it

Retry after the Retry-After delay (5 seconds). The request was not processed and was not billed.

## Example response

```json
{
  "type": "https://corpoapi.com/errors/upstream_timeout",
  "title": "Gateway timeout",
  "status": 504,
  "code": "upstream_timeout",
  "detail": "The data service timed out. The request was not processed; safe to retry after the Retry-After delay."
}
```
