Skip to main content
Module

x/oak_sessions/deps.ts>HttpError

Session middleware for Oak
Go to Latest
class HttpError
extends Error
import { HttpError } from "https://deno.land/x/oak_sessions@v4.0.0/deps.ts";

The base class for individual classes of HTTP errors.

Properties

expose: boolean

Determines if details about the error should be automatically exposed in a response. This is automatically set to true for 4XX errors, as they represent errors in the request, while 5XX errors are set to false as they are internal server errors and exposing details could leak important server security information.

status

The HTTP error status associated with this class of error.