import { ApplicationException, getHttpStatusFromException } from '@nl-framework/core'; /** * HTTP-specific exception class that extends ApplicationException. * Automatically converts error codes to HTTP status codes. * * @deprecated Use ApplicationException directly for better cross-transport compatibility. * This class is kept for backward compatibility. */ export declare class HttpException extends ApplicationException { readonly status: number; readonly cause?: Error | undefined; constructor(status: number, message: string, cause?: Error | undefined); static badRequest(message?: string, cause?: Error): HttpException; static unauthorized(message?: string, cause?: Error): HttpException; static forbidden(message?: string, cause?: Error): HttpException; static notFound(message?: string, cause?: Error): HttpException; static conflict(message?: string, cause?: Error): HttpException; static unprocessableEntity(message?: string, cause?: Error): HttpException; static payloadTooLarge(message?: string, cause?: Error): HttpException; static unsupportedMediaType(message?: string, cause?: Error): HttpException; static internalServerError(message?: string, cause?: Error): HttpException; static serviceUnavailable(message?: string, cause?: Error): HttpException; } /** * 413 — the request body (or an uploaded file) exceeds the allowed size. */ export declare class PayloadTooLargeException extends HttpException { constructor(message?: string, cause?: Error); } /** * 415 — the uploaded content type is not among the accepted MIME types. */ export declare class UnsupportedMediaTypeException extends HttpException { constructor(message?: string, cause?: Error); } /** * Helper to get HTTP status code from any ApplicationException */ export { getHttpStatusFromException }; //# sourceMappingURL=http-exception.d.ts.map