Skip to main content
Module

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

Alosaur - Deno web framework with many decorators
Very Popular
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; } }}