import BaseException from "../base.exception"; /** * @fileoverview Method Not Allowed exception (HTTP 405) * @author dr. Salmi */ /** * Exception thrown when the HTTP method is not allowed for the requested resource. * Corresponds to HTTP 405 Method Not Allowed status code. * * @class MethodNotAllowedException * @extends {BaseException} * @example * ```typescript * throw new MethodNotAllowedException('POST method not allowed'); * throw new MethodNotAllowedException('Method not allowed', { * method: 'DELETE', * allowedMethods: ['GET', 'POST'] * }); * ``` */ declare class MethodNotAllowedException extends BaseException { /** * Creates an instance of MethodNotAllowedException. * * @param {string} [message='Method Not Allowed'] - The error message * @param {Record} [context] - Additional context about the method restriction * @memberof MethodNotAllowedException */ constructor(message?: string, context?: Record); } export default MethodNotAllowedException;