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.
16 lines (12 loc) • 341 B
text/typescript
import { HttpError } from './HttpError.js';
/**
* Exception for todo HTTP error.
*/
export class MethodNotAllowedError extends HttpError {
name = 'MethodNotAllowedError';
constructor(message?: string) {
super(405);
Object.setPrototypeOf(this, MethodNotAllowedError.prototype);
if (message) this.message = message;
}
}