import { IHttpHeader } from '../types/HttpHeader'; import { IHttpResponse } from './HttpResponse'; export interface IHttpExceptionOptions { code?: number; headers?: IHttpHeader; } export declare class HttpException extends Error implements IHttpResponse { static isHttpException(error: any): error is HttpException; static badRequest(message?: string, options?: IHttpExceptionOptions): HttpException; static unauthorized(message?: string, options?: IHttpExceptionOptions): HttpException; static toHttpException(error: Error): HttpException; static paymentRequired(message?: string, options?: IHttpExceptionOptions): HttpException; static forbidden(message?: string, options?: IHttpExceptionOptions): HttpException; static notFound(message?: string, options?: IHttpExceptionOptions): HttpException; static methodNotAllowed(message?: string, options?: IHttpExceptionOptions): HttpException; static notAcceptable(message?: string, options?: IHttpExceptionOptions): HttpException; static proxyAuthRequired(message?: string, options?: IHttpExceptionOptions): HttpException; static clientTimeout(message?: string, options?: IHttpExceptionOptions): HttpException; static conflict(message?: string, options?: IHttpExceptionOptions): HttpException; static resourceGone(message?: string, options?: IHttpExceptionOptions): HttpException; static lengthRequired(message?: string, options?: IHttpExceptionOptions): HttpException; static preconditionFailed(message?: string, options?: IHttpExceptionOptions): HttpException; static entityTooLarge(message?: string, options?: IHttpExceptionOptions): HttpException; static uriTooLong(message?: string, options?: IHttpExceptionOptions): HttpException; static unsupportedMediaType(message?: string, options?: IHttpExceptionOptions): HttpException; static rangeNotSatisfiable(message?: string, options?: IHttpExceptionOptions): HttpException; static expectationFailed(message?: string, options?: IHttpExceptionOptions): HttpException; static teapot(message?: string, options?: IHttpExceptionOptions): HttpException; static badData(message?: string, options?: IHttpExceptionOptions): HttpException; static locked(message?: string, options?: IHttpExceptionOptions): HttpException; static failedDependency(message?: string, options?: IHttpExceptionOptions): HttpException; static preconditionRequired(message?: string, options?: IHttpExceptionOptions): HttpException; static tooManyRequests(message?: string, options?: IHttpExceptionOptions): HttpException; static illegal(message?: string, options?: IHttpExceptionOptions): HttpException; static badImplementation(message?: string, options?: IHttpExceptionOptions): HttpException; static internal(message?: string, options?: IHttpExceptionOptions): HttpException; static notImplemented(message?: string, options?: IHttpExceptionOptions): HttpException; static badGateway(message?: string, options?: IHttpExceptionOptions): HttpException; static serverUnavailable(message?: string, options?: IHttpExceptionOptions): HttpException; static gatewayTimeout(message?: string, options?: IHttpExceptionOptions): HttpException; status: number; code?: number; headers?: IHttpHeader; constructor(statusCode: number, message?: string, options?: IHttpExceptionOptions); getRawHeader(): { [key: string]: string; } | undefined; getBody(): any; isSeverException(): boolean; }