Skip to main content
Module

x/cav/dom.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.2.0-alpha.7/dom.ts";

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.

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.