Skip to main content
Module

x/acorn/deps.ts>HttpError

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
class HttpError
extends Error
import { HttpError } from "https://deno.land/x/acorn@0.0.10/deps.ts";

The base class that all derivative HTTP extend, providing a status and an expose property.

Properties

readonly
expose: boolean

A flag to indicate if the internals of the error, like the stack, should be exposed to a client, or if they are "private" and should not be leaked. By default, all client errors are true and all server errors are false.

readonly
status: ErrorStatus

The error status that is set on the error.