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

x/alosaur/src/http-error/UnauthorizedError.ts

Alosaur - Deno web framework with many decorators
Go to Latest
File
import { HttpError } from "./HttpError.ts";
/** * Exception for 401 HTTP error. */export class UnauthorizedError extends HttpError { name = "UnauthorizedError";
constructor(message?: string) { super(401); Object.setPrototypeOf(this, UnauthorizedError.prototype);
if (message) { this.message = message; } }}