UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

10 lines (9 loc) 325 B
import { CustomError } from './CustomError.js'; export class ForbiddenAsNotFoundError extends CustomError { httpStatus = 404; constructor(message) { super(message ?? 'Not found'); this.name = 'ForbiddenAsNotFoundError'; Object.setPrototypeOf(this, ForbiddenAsNotFoundError.prototype); } }