@whi/cf-routing - v0.7.0
    Preparing search index...

    Function buildErrorResponse

    • Build an error Response from an error, preserving HttpError details and headers.

      Parameters

      • error: unknown

        The error that was thrown

      • ctx: ResponseBuildContext

        The request context

      • OptionalcorsConfig: CorsConfig<any, any>

        Optional CORS configuration

      • OptionalcorsCtx: CorsOriginContext<any, any>

        Optional context for resolving dynamic CORS origins

      Returns Response

      An error Response