/** * Base class for HTTP exceptions that carry a status code and optional headers. * * Throw these from controllers or middleware to short-circuit the request * with a specific response — the exception handler maps them automatically. */ export declare class HttpException extends Error { readonly status: number; readonly headers: Headers; constructor(message: string, status?: number, headers?: Record); } export declare class MethodNotAllowedException extends HttpException { readonly allowedMethods: string[]; constructor(method: string, path: string, allowedMethods: string[]); } export declare class NotFoundHttpException extends HttpException { constructor(message?: string); } //# sourceMappingURL=http-exception.d.ts.map