UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

19 lines (16 loc) 323 B
import { HttpError } from "./HttpError.ts"; export class UnauthorizedError extends HttpError { readonly name = "UnauthorizedError"; constructor( message = "Not allowed to access this resource", cause?: unknown, ) { super( { message, status: 401, }, cause, ); } }