API reference@evolu/commonHttp › FetchError

type FetchError = FetchTransportError | FetchStatusError | FetchBodyError;

Defined in: packages/common/src/Http.ts:90

Error returned by fetch body modes.

The union distinguishes native request failures, non-2xx responses, and body read failures. Narrow on type when handling a specific case. The distinction matters for retries: FetchBodyError means a 2xx response failed during reading, so the server may have committed the request.