Logos DX
    Preparing search index...

    Type Alias FetchFailure<T, RH>

    FetchFailure:
        | { error: FetchError; kind: "transport" }
        | {
            kind: "http";
            response: Extract<FetchResponse<T, unknown, unknown, RH>, { ok: false }>;
        }

    One failure signal for a request outcome, replacing a bare error + response pair. kind: 'transport' means no response exists at all (abort, timeout, connection lost) — error is the FetchError, with its .isCancelled() / .isTimeout() / .isConnectionLost() helpers. kind: 'http' means the server answered with a non-2xx status — the response is the resolved, ok-false FetchResponse. Callers check one field to know "did it fail", then narrow kind to see which channel.

    Type Parameters