typenexus
Version:
TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.
14 lines (13 loc) • 337 B
JavaScript
import { HttpError } from './HttpError.js';
/**
* Exception for 403 HTTP error.
*/
export class ForbiddenError extends HttpError {
name = 'ForbiddenError';
constructor(message) {
super(403);
Object.setPrototypeOf(this, ForbiddenError.prototype);
if (message)
this.message = message;
}
}