Skip to main content
Module

x/cav/mod.ts>HttpErrorInit

A server framework for Deno
Go to Latest
interface HttpErrorInit
import { type HttpErrorInit } from "https://deno.land/x/cav@0.0.21/mod.ts";

Initializer arguments for constructing HttpErrors, which can expose arbitrary data and status codes during de/serialization.

Properties

optional
status: number

An HTTP status code describing what kind of error this is.

optional
expose: unknown

Optional data exposed to the client when this error is serialized.

optional
detail: Record<string, unknown>

Other details about the error. Omitted during serialization.