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

# stream_duration_exceeded

> Mid-stream code — the stream exceeded the gateway's maximum duration and was terminated.

## HTTP status

Not returned as an HTTP status. Delivered as a terminal in-stream error frame (`code: stream_duration_exceeded`) and recorded in internal observability data (`request_metrics`).

## Typical cause

The stream stayed open past the gateway's maximum stream duration (60 minutes). This is a platform policy limit, not a provider failure — it bounds streams that remain alive far beyond any expected response length.

## Resolution

Split the work into smaller requests and retry. A legitimate response should complete well within the limit; if you consistently hit it, reduce the requested output length.
