core-utils
    Preparing search index...
    • Returns true when code indicates the request itself is broken and retrying without changes is unlikely to succeed. Consumers should treat these as non-retryable: log at ERROR and stop, rather than rethrowing into a retry framework.

      Parameters

      • code: string | undefined

      Returns boolean

      if (isFailure(result)) {
      const code = result.error.issues[0]?.code;
      if (isClientError(code)) {
      logger.error("Notification failed with client error; not retrying", { code });
      return;
      }
      throw result.error;
      }