Skip to main content
Zeus provides error capturing and retry mechanisms at every stage of message processing, ensuring the reliability of streaming and continuity of the user experience.

Backend Error Handling

Error Classification

All errors are returned to the frontend via the SSE error event type, containing error_code and details fields.

Frontend Error Handling

HTTP Status Code Handling

Stream Error Handling


Retry Strategy

Automatic Retry

When a recoverable error is encountered, the system automatically retries using an exponential backoff strategy:

Non-Retryable Errors

The following error types do not trigger automatic retries:
  • Authentication error (401) — Requires user to re-login
  • Insufficient credits (403) — Requires user to top up
  • User-initiated cancel (AbortError) — User intent is clear

Fallback & Degradation

Event Persistence Fallback

RealtimeEventSaver fallback strategy when persistence fails:

Timeout Protection