declare class HTTPException extends Error { name: string; message: string; status: number; statusText: string; expose: boolean; [key: string]: any; constructor(code: number, message?: string, options?: ErrorOptions); toString(): string; toJSON(): { name: string; status: number; statusText: string; message: string; }; static isHTTPException(error: any): any; } interface HTTPExceptionProperties { [key: string]: any; } interface IError extends Error { status: number; expose: boolean; [key: string]: any; } /** * Create a new HTTPException. * * @returns {HTTPException} */ declare function createHttpError(status: number, message?: string, props?: HTTPExceptionProperties): HTTPException; declare function createHttpError(status: number, err: Error, props?: HTTPExceptionProperties): IError; export { HTTPException, type HTTPExceptionProperties, type IError, createHttpError };