Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cav/browser/mod.ts>HttpError

A server framework for Deno
Go to Latest
class HttpError
extends Error
import { HttpError } from "https://deno.land/x/cav@0.0.8/browser/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.