Skip to main content
Module

x/cav/mod.ts>HttpError

A server framework for Deno
Go to Latest
class HttpError
extends Error
Re-export
import { HttpError } from "https://deno.land/x/cav@0.0.21/mod.ts";

An error class for describing exceptions during HTTP processing.

Constructors

new
HttpError(message: string, init?: HttpErrorInit)

Properties

detail: Record<string, unknown>

Other details about the error. Omitted during serialization.

optional
expose: unknown

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

status: number

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