import OperationalError, { type OperationalErrorData } from './operational-error.ts'; interface HttpErrorData extends OperationalErrorData { statusCode?: number; } /** * Class representing an HTTP error. */ export default class HttpError extends OperationalError { readonly name: string; readonly statusCode: number; readonly statusMessage: string; get status(): number; constructor(message?: number | string | HttpErrorData); constructor(message: number | string, data?: HttpErrorData); /** * Reserved keys that should not appear in `HttpError.prototype.data`. */ protected static reservedKeys: string[]; protected static readonly defaultStatusCode: number; /** * Normalize an HTTP status code. */ protected static normalizeErrorStatusCode(statusCode: number): number; /** * Get the HTTP message for a given status code. */ private static getMessageForStatusCode; } export {}; //# sourceMappingURL=http-error.d.ts.map