Sanity Library Reference Docs
    Preparing search index...

    Function isHttpError

    • Checks if the provided error is an HTTP error.

      Parameters

      • error: unknown

        The error to check.

      Returns error is HttpError

      true if the error is an HTTP error, false otherwise.