Astrada TypeScript SDK
    Preparing search index...

    Function readErrorBody

    • Reads the error body once; the response stays readable for the caller (error.response). A body that cannot be read counts as no body, except a timeout or an abort of signal (the caller's), which propagate.

      Parameters

      • response: Response
      • Optionalsignal: AbortSignal

      Returns Promise<ApiErrorBody>