Restate Typescript SDK
    Preparing search index...
    RetryFailure:
        | { error: unknown; kind: "network" }
        | { body?: string; headers: Headers; kind: "response"; status: number }

    An ambiguous ingress failure that may be retried.

    Passed to RetryPolicy.shouldRetry so a caller can inspect the failure and decide whether to retry.

    Type Declaration

    • { error: unknown; kind: "network" }
      • Readonlyerror: unknown
      • Readonlykind: "network"

        The underlying fetch call rejected (connection refused/reset, DNS).

    • { body?: string; headers: Headers; kind: "response"; status: number }
      • Optional Readonlybody?: string

        The response body, decoded as text, when the response carried a non-empty body; undefined otherwise.

      • Readonlyheaders: Headers
      • Readonlykind: "response"

        The server returned a non-2xx response.

      • Readonlystatus: number