libmodulor
Version:
A TypeScript library to create platform-agnostic applications
10 lines (9 loc) • 329 B
JavaScript
import { CustomError } from './CustomError.js';
export class ForbiddenAsNotFoundError extends CustomError {
httpStatus = 404;
constructor(message) {
super(message ?? 'err_not_found');
this.name = 'ForbiddenAsNotFoundError';
Object.setPrototypeOf(this, ForbiddenAsNotFoundError.prototype);
}
}