Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/deps.ts>HttpErrorOptions

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
interface HttpErrorOptions
implements ErrorOptions
import { type HttpErrorOptions } from "https://deno.land/x/oauth2_server@0.12.0/deps.ts";

Options for initializing an HttpError.

Properties

optional
name: string

The name of the error. Default based on error status.

optional
message: string
optional
status: number

The HTTP status associated with the error. Defaults to 500.

optional
expose: boolean

Determines if the error should be exposed in the response. Defaults to true for client error statuses and false for server error statuses.