API Core - v1.5.0
    Preparing search index...

    Function createHttpError

    • An HttpError carrying a minimal request snapshot and an empty response body — the shape the resilience policies and the session mechanism branch on.

      Parameters

      • root0: {
            message: string;
            method?: string;
            responseHeaders?: Record<string, string>;
            status: number;
            url: string;
        }

        The error's coordinates.

        • message: string

          Human-readable error description.

        • Optionalmethod?: string

          Request method (defaults to get).

        • OptionalresponseHeaders?: Record<string, string>

          Response headers (default none).

        • status: number

          Response status.

        • url: string

          Request URL.

      Returns HttpError

      The built error, its snapshot redacted through the base vocabulary like any other.