code; messages can change.
Error reference
Error messages from endpoints are never passed through. When an endpoint fails, you get a generic message such as
upstream request failed.
Retrying
- Honor the
Retry-Afterheader on429and503. It’s in seconds. - For
502and500, retry with exponential backoff. - TokenChange already retries on other endpoints before returning an error, so retry fewer times than you would against a single server.
- Pinned requests aren’t retried on other endpoints. Remove the pin to let TokenChange fail over.
Errors after the stream starts
Once the stream has started, the status is already200. A failure then arrives as an error event followed by data: [DONE]:
error field. Output delivered before the error is billed.