/** * Errors encountered when the client clock and server clock cannot agree on the * current time. * * These errors are retryable, assuming the SDK has enabled clock skew * correction. */ export const CLOCK_SKEW_ERROR_CODES = [ "AuthFailure", "InvalidSignatureException", "RequestExpired", "RequestInTheFuture", "RequestTimeTooSkewed", "SignatureDoesNotMatch", ]; /** * Errors that indicate the SDK is being throttled. * * These errors are always retryable. */ export const THROTTLING_ERROR_CODES = [ "BandwidthLimitExceeded", "EC2ThrottledException", "LimitExceededException", "PriorRequestNotComplete", "ProvisionedThroughputExceededException", "RequestLimitExceeded", "RequestThrottled", "RequestThrottledException", "SlowDown", "ThrottledException", "Throttling", "ThrottlingException", "TooManyRequestsException", "TransactionInProgressException", // DynamoDB ]; /** * Error codes that indicate transient issues */ export const TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; /** * Error codes that indicate transient issues */ export const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];