UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

10 lines (9 loc) 295 B
import { CustomError } from './CustomError.js'; export class InternalServerError extends CustomError { httpStatus = 500; constructor(message) { super(message); this.name = 'InternalServerError'; Object.setPrototypeOf(this, InternalServerError.prototype); } }