import { SuperError } from '@andrewscwei/super-error'; import { HTTPStatusCode } from './enums/HTTPStatusCode.js'; export declare function getDefaultStatusCodeMessage(statusCode: HTTPStatusCode): string | undefined; export declare class HTTPError extends SuperError { readonly status: number; constructor(status: number, message?: string, code?: string, info?: Record, cause?: Error); /** * @inheritdoc */ toString(): string; } export declare class HTTPBadRequestError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUnauthorizedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPPaymentRequiredError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPForbiddenError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPNotFoundError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPMethodNotAllowedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPNotAcceptableError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPProxyAuthenticationRequiredError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPRequestTimeoutError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPConflictError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPGoneError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPLengthRequiredError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPPreconditionFailedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPPayloadTooLargeError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUriTooLongError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUnsupportedMediaTypeError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPRangeNotSatisfiableError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPExpectationFailedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPImATeapotError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPMisdirectedRequestError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUnprocessableEntityError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPLockedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPFailedDependencyError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUnorderedCollectionError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUpgradeRequiredError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPPreconditionRequiredError extends HTTPError { constructor(message?: string, code?: string, info?: Record); } export declare class HTTPTooManyRequestsError extends HTTPError { constructor(message?: string, code?: string, info?: Record); } export declare class HTTPRequestHeaderFieldsTooLargeError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPUnavailableForLegalReasonsError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPInternalServerError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPNotImplementedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPBadGatewayError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPServiceUnavailableError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPGatewayTimeoutError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPHttpVersionNotSupportedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPVariantAlsoNegotiatesError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPInsufficientStorageError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPLoopDetectedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPBandwidthLimitExceededError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPNotExtendedError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export declare class HTTPNetworkAuthenticationRequireError extends HTTPError { constructor(message?: string, code?: string, info?: Record, cause?: Error); } export { HTTPStatusCode };