UNPKG

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) 349 B
import { HttpError } from './HttpError.js'; /** * Exception for 406 HTTP error. */ export class NotAcceptableError extends HttpError { name = 'NotAcceptableError'; constructor(message) { super(406); Object.setPrototypeOf(this, NotAcceptableError.prototype); if (message) this.message = message; } }