import type { CcRequest, CcResponse } from '../../types/request.types.js'; import type { SimpleCommand } from '../command/command.js'; /** * Error code reported for any rate-limited request, regardless of which backend produced it. * This is the wire code already used natively by v4/OVD-backed endpoints; legacy v2 (cc-api) * rate-limit responses are normalized to it as well, see {@link isRateLimitResponse}. */ export declare const TOO_MANY_REQUESTS_ERROR_CODE = "clever.core.too-many-requests"; /** * Error code reported for a payload the backend rejected as invalid, regardless of which backend * produced it. Like {@link TOO_MANY_REQUESTS_ERROR_CODE} this is the wire code v4/OVD-backed * endpoints already send natively; notification-api describes the same failure with no code at all, * and is normalized to it, see {@link isFieldErrorsResponse}. */ export declare const BAD_REQUEST_ERROR_CODE = "clever.core.bad-request"; export declare function handleHttpErrors(request: CcRequest, response: CcResponse, command?: SimpleCommand): void; //# sourceMappingURL=handle-http-errors.d.ts.map