Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.3/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.