Files
plexjs/src/http/errors/MethodNotAllowed.ts
2023-10-26 21:12:05 -05:00

15 lines
282 B
TypeScript

import { BaseHTTPError } from './base';
export default class MethodNotAllowed extends BaseHTTPError {
statusCode = 405;
title = 'Method Not Allowed';
allow?: string[];
constructor(detail: string = '', allow?: string[]) {
super(detail);
this.allow = allow;
}
}