diff --git a/cmd/api-errors.go b/cmd/api-errors.go index b695fa4f9..9312b2c4e 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -82,6 +82,7 @@ const ( ErrIncompleteBody ErrInternalError ErrInvalidAccessKeyID + ErrAccessKeyDisabled ErrInvalidBucketName ErrInvalidDigest ErrInvalidRange @@ -514,6 +515,11 @@ var errorCodes = errorCodeMap{ Description: "The Access Key Id you provided does not exist in our records.", HTTPStatusCode: http.StatusForbidden, }, + ErrAccessKeyDisabled: { + Code: "InvalidAccessKeyId", + Description: "Your account is disabled; please contact your administrator.", + HTTPStatusCode: http.StatusForbidden, + }, ErrInvalidBucketName: { Code: "InvalidBucketName", Description: "The specified bucket is not valid.", @@ -681,7 +687,7 @@ var errorCodes = errorCodeMap{ }, ErrAllAccessDisabled: { Code: "AllAccessDisabled", - Description: "All access to this bucket has been disabled.", + Description: "All access to this resource has been disabled.", HTTPStatusCode: http.StatusForbidden, }, ErrMalformedPolicy: { diff --git a/cmd/apierrorcode_string.go b/cmd/apierrorcode_string.go index a4cfc7bb3..a99493a83 100644 --- a/cmd/apierrorcode_string.go +++ b/cmd/apierrorcode_string.go @@ -17,287 +17,288 @@ func _() { _ = x[ErrIncompleteBody-6] _ = x[ErrInternalError-7] _ = x[ErrInvalidAccessKeyID-8] - _ = x[ErrInvalidBucketName-9] - _ = x[ErrInvalidDigest-10] - _ = x[ErrInvalidRange-11] - _ = x[ErrInvalidRangePartNumber-12] - _ = x[ErrInvalidCopyPartRange-13] - _ = x[ErrInvalidCopyPartRangeSource-14] - _ = x[ErrInvalidMaxKeys-15] - _ = x[ErrInvalidEncodingMethod-16] - _ = x[ErrInvalidMaxUploads-17] - _ = x[ErrInvalidMaxParts-18] - _ = x[ErrInvalidPartNumberMarker-19] - _ = x[ErrInvalidPartNumber-20] - _ = x[ErrInvalidRequestBody-21] - _ = x[ErrInvalidCopySource-22] - _ = x[ErrInvalidMetadataDirective-23] - _ = x[ErrInvalidCopyDest-24] - _ = x[ErrInvalidPolicyDocument-25] - _ = x[ErrInvalidObjectState-26] - _ = x[ErrMalformedXML-27] - _ = x[ErrMissingContentLength-28] - _ = x[ErrMissingContentMD5-29] - _ = x[ErrMissingRequestBodyError-30] - _ = x[ErrMissingSecurityHeader-31] - _ = x[ErrNoSuchBucket-32] - _ = x[ErrNoSuchBucketPolicy-33] - _ = x[ErrNoSuchBucketLifecycle-34] - _ = x[ErrNoSuchLifecycleConfiguration-35] - _ = x[ErrInvalidLifecycleWithObjectLock-36] - _ = x[ErrNoSuchBucketSSEConfig-37] - _ = x[ErrNoSuchCORSConfiguration-38] - _ = x[ErrNoSuchWebsiteConfiguration-39] - _ = x[ErrReplicationConfigurationNotFoundError-40] - _ = x[ErrRemoteDestinationNotFoundError-41] - _ = x[ErrReplicationDestinationMissingLock-42] - _ = x[ErrRemoteTargetNotFoundError-43] - _ = x[ErrReplicationRemoteConnectionError-44] - _ = x[ErrReplicationBandwidthLimitError-45] - _ = x[ErrBucketRemoteIdenticalToSource-46] - _ = x[ErrBucketRemoteAlreadyExists-47] - _ = x[ErrBucketRemoteLabelInUse-48] - _ = x[ErrBucketRemoteArnTypeInvalid-49] - _ = x[ErrBucketRemoteArnInvalid-50] - _ = x[ErrBucketRemoteRemoveDisallowed-51] - _ = x[ErrRemoteTargetNotVersionedError-52] - _ = x[ErrReplicationSourceNotVersionedError-53] - _ = x[ErrReplicationNeedsVersioningError-54] - _ = x[ErrReplicationBucketNeedsVersioningError-55] - _ = x[ErrReplicationDenyEditError-56] - _ = x[ErrReplicationNoMatchingRuleError-57] - _ = x[ErrObjectRestoreAlreadyInProgress-58] - _ = x[ErrNoSuchKey-59] - _ = x[ErrNoSuchUpload-60] - _ = x[ErrInvalidVersionID-61] - _ = x[ErrNoSuchVersion-62] - _ = x[ErrNotImplemented-63] - _ = x[ErrPreconditionFailed-64] - _ = x[ErrRequestTimeTooSkewed-65] - _ = x[ErrSignatureDoesNotMatch-66] - _ = x[ErrMethodNotAllowed-67] - _ = x[ErrInvalidPart-68] - _ = x[ErrInvalidPartOrder-69] - _ = x[ErrAuthorizationHeaderMalformed-70] - _ = x[ErrMalformedPOSTRequest-71] - _ = x[ErrPOSTFileRequired-72] - _ = x[ErrSignatureVersionNotSupported-73] - _ = x[ErrBucketNotEmpty-74] - _ = x[ErrAllAccessDisabled-75] - _ = x[ErrMalformedPolicy-76] - _ = x[ErrMissingFields-77] - _ = x[ErrMissingCredTag-78] - _ = x[ErrCredMalformed-79] - _ = x[ErrInvalidRegion-80] - _ = x[ErrInvalidServiceS3-81] - _ = x[ErrInvalidServiceSTS-82] - _ = x[ErrInvalidRequestVersion-83] - _ = x[ErrMissingSignTag-84] - _ = x[ErrMissingSignHeadersTag-85] - _ = x[ErrMalformedDate-86] - _ = x[ErrMalformedPresignedDate-87] - _ = x[ErrMalformedCredentialDate-88] - _ = x[ErrMalformedCredentialRegion-89] - _ = x[ErrMalformedExpires-90] - _ = x[ErrNegativeExpires-91] - _ = x[ErrAuthHeaderEmpty-92] - _ = x[ErrExpiredPresignRequest-93] - _ = x[ErrRequestNotReadyYet-94] - _ = x[ErrUnsignedHeaders-95] - _ = x[ErrMissingDateHeader-96] - _ = x[ErrInvalidQuerySignatureAlgo-97] - _ = x[ErrInvalidQueryParams-98] - _ = x[ErrBucketAlreadyOwnedByYou-99] - _ = x[ErrInvalidDuration-100] - _ = x[ErrBucketAlreadyExists-101] - _ = x[ErrMetadataTooLarge-102] - _ = x[ErrUnsupportedMetadata-103] - _ = x[ErrMaximumExpires-104] - _ = x[ErrSlowDown-105] - _ = x[ErrInvalidPrefixMarker-106] - _ = x[ErrBadRequest-107] - _ = x[ErrKeyTooLongError-108] - _ = x[ErrInvalidBucketObjectLockConfiguration-109] - _ = x[ErrObjectLockConfigurationNotFound-110] - _ = x[ErrObjectLockConfigurationNotAllowed-111] - _ = x[ErrNoSuchObjectLockConfiguration-112] - _ = x[ErrObjectLocked-113] - _ = x[ErrInvalidRetentionDate-114] - _ = x[ErrPastObjectLockRetainDate-115] - _ = x[ErrUnknownWORMModeDirective-116] - _ = x[ErrBucketTaggingNotFound-117] - _ = x[ErrObjectLockInvalidHeaders-118] - _ = x[ErrInvalidTagDirective-119] - _ = x[ErrInvalidEncryptionMethod-120] - _ = x[ErrInsecureSSECustomerRequest-121] - _ = x[ErrSSEMultipartEncrypted-122] - _ = x[ErrSSEEncryptedObject-123] - _ = x[ErrInvalidEncryptionParameters-124] - _ = x[ErrInvalidSSECustomerAlgorithm-125] - _ = x[ErrInvalidSSECustomerKey-126] - _ = x[ErrMissingSSECustomerKey-127] - _ = x[ErrMissingSSECustomerKeyMD5-128] - _ = x[ErrSSECustomerKeyMD5Mismatch-129] - _ = x[ErrInvalidSSECustomerParameters-130] - _ = x[ErrIncompatibleEncryptionMethod-131] - _ = x[ErrKMSNotConfigured-132] - _ = x[ErrNoAccessKey-133] - _ = x[ErrInvalidToken-134] - _ = x[ErrEventNotification-135] - _ = x[ErrARNNotification-136] - _ = x[ErrRegionNotification-137] - _ = x[ErrOverlappingFilterNotification-138] - _ = x[ErrFilterNameInvalid-139] - _ = x[ErrFilterNamePrefix-140] - _ = x[ErrFilterNameSuffix-141] - _ = x[ErrFilterValueInvalid-142] - _ = x[ErrOverlappingConfigs-143] - _ = x[ErrUnsupportedNotification-144] - _ = x[ErrContentSHA256Mismatch-145] - _ = x[ErrReadQuorum-146] - _ = x[ErrWriteQuorum-147] - _ = x[ErrStorageFull-148] - _ = x[ErrRequestBodyParse-149] - _ = x[ErrObjectExistsAsDirectory-150] - _ = x[ErrInvalidObjectName-151] - _ = x[ErrInvalidObjectNamePrefixSlash-152] - _ = x[ErrInvalidResourceName-153] - _ = x[ErrServerNotInitialized-154] - _ = x[ErrOperationTimedOut-155] - _ = x[ErrClientDisconnected-156] - _ = x[ErrOperationMaxedOut-157] - _ = x[ErrInvalidRequest-158] - _ = x[ErrTransitionStorageClassNotFoundError-159] - _ = x[ErrInvalidStorageClass-160] - _ = x[ErrBackendDown-161] - _ = x[ErrMalformedJSON-162] - _ = x[ErrAdminNoSuchUser-163] - _ = x[ErrAdminNoSuchGroup-164] - _ = x[ErrAdminGroupNotEmpty-165] - _ = x[ErrAdminNoSuchPolicy-166] - _ = x[ErrAdminInvalidArgument-167] - _ = x[ErrAdminInvalidAccessKey-168] - _ = x[ErrAdminInvalidSecretKey-169] - _ = x[ErrAdminConfigNoQuorum-170] - _ = x[ErrAdminConfigTooLarge-171] - _ = x[ErrAdminConfigBadJSON-172] - _ = x[ErrAdminConfigDuplicateKeys-173] - _ = x[ErrAdminCredentialsMismatch-174] - _ = x[ErrInsecureClientRequest-175] - _ = x[ErrObjectTampered-176] - _ = x[ErrSiteReplicationInvalidRequest-177] - _ = x[ErrSiteReplicationPeerResp-178] - _ = x[ErrSiteReplicationBackendIssue-179] - _ = x[ErrSiteReplicationServiceAccountError-180] - _ = x[ErrSiteReplicationBucketConfigError-181] - _ = x[ErrSiteReplicationBucketMetaError-182] - _ = x[ErrSiteReplicationIAMError-183] - _ = x[ErrAdminBucketQuotaExceeded-184] - _ = x[ErrAdminNoSuchQuotaConfiguration-185] - _ = x[ErrHealNotImplemented-186] - _ = x[ErrHealNoSuchProcess-187] - _ = x[ErrHealInvalidClientToken-188] - _ = x[ErrHealMissingBucket-189] - _ = x[ErrHealAlreadyRunning-190] - _ = x[ErrHealOverlappingPaths-191] - _ = x[ErrIncorrectContinuationToken-192] - _ = x[ErrEmptyRequestBody-193] - _ = x[ErrUnsupportedFunction-194] - _ = x[ErrInvalidExpressionType-195] - _ = x[ErrBusy-196] - _ = x[ErrUnauthorizedAccess-197] - _ = x[ErrExpressionTooLong-198] - _ = x[ErrIllegalSQLFunctionArgument-199] - _ = x[ErrInvalidKeyPath-200] - _ = x[ErrInvalidCompressionFormat-201] - _ = x[ErrInvalidFileHeaderInfo-202] - _ = x[ErrInvalidJSONType-203] - _ = x[ErrInvalidQuoteFields-204] - _ = x[ErrInvalidRequestParameter-205] - _ = x[ErrInvalidDataType-206] - _ = x[ErrInvalidTextEncoding-207] - _ = x[ErrInvalidDataSource-208] - _ = x[ErrInvalidTableAlias-209] - _ = x[ErrMissingRequiredParameter-210] - _ = x[ErrObjectSerializationConflict-211] - _ = x[ErrUnsupportedSQLOperation-212] - _ = x[ErrUnsupportedSQLStructure-213] - _ = x[ErrUnsupportedSyntax-214] - _ = x[ErrUnsupportedRangeHeader-215] - _ = x[ErrLexerInvalidChar-216] - _ = x[ErrLexerInvalidOperator-217] - _ = x[ErrLexerInvalidLiteral-218] - _ = x[ErrLexerInvalidIONLiteral-219] - _ = x[ErrParseExpectedDatePart-220] - _ = x[ErrParseExpectedKeyword-221] - _ = x[ErrParseExpectedTokenType-222] - _ = x[ErrParseExpected2TokenTypes-223] - _ = x[ErrParseExpectedNumber-224] - _ = x[ErrParseExpectedRightParenBuiltinFunctionCall-225] - _ = x[ErrParseExpectedTypeName-226] - _ = x[ErrParseExpectedWhenClause-227] - _ = x[ErrParseUnsupportedToken-228] - _ = x[ErrParseUnsupportedLiteralsGroupBy-229] - _ = x[ErrParseExpectedMember-230] - _ = x[ErrParseUnsupportedSelect-231] - _ = x[ErrParseUnsupportedCase-232] - _ = x[ErrParseUnsupportedCaseClause-233] - _ = x[ErrParseUnsupportedAlias-234] - _ = x[ErrParseUnsupportedSyntax-235] - _ = x[ErrParseUnknownOperator-236] - _ = x[ErrParseMissingIdentAfterAt-237] - _ = x[ErrParseUnexpectedOperator-238] - _ = x[ErrParseUnexpectedTerm-239] - _ = x[ErrParseUnexpectedToken-240] - _ = x[ErrParseUnexpectedKeyword-241] - _ = x[ErrParseExpectedExpression-242] - _ = x[ErrParseExpectedLeftParenAfterCast-243] - _ = x[ErrParseExpectedLeftParenValueConstructor-244] - _ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-245] - _ = x[ErrParseExpectedArgumentDelimiter-246] - _ = x[ErrParseCastArity-247] - _ = x[ErrParseInvalidTypeParam-248] - _ = x[ErrParseEmptySelect-249] - _ = x[ErrParseSelectMissingFrom-250] - _ = x[ErrParseExpectedIdentForGroupName-251] - _ = x[ErrParseExpectedIdentForAlias-252] - _ = x[ErrParseUnsupportedCallWithStar-253] - _ = x[ErrParseNonUnaryAgregateFunctionCall-254] - _ = x[ErrParseMalformedJoin-255] - _ = x[ErrParseExpectedIdentForAt-256] - _ = x[ErrParseAsteriskIsNotAloneInSelectList-257] - _ = x[ErrParseCannotMixSqbAndWildcardInSelectList-258] - _ = x[ErrParseInvalidContextForWildcardInSelectList-259] - _ = x[ErrIncorrectSQLFunctionArgumentType-260] - _ = x[ErrValueParseFailure-261] - _ = x[ErrEvaluatorInvalidArguments-262] - _ = x[ErrIntegerOverflow-263] - _ = x[ErrLikeInvalidInputs-264] - _ = x[ErrCastFailed-265] - _ = x[ErrInvalidCast-266] - _ = x[ErrEvaluatorInvalidTimestampFormatPattern-267] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-268] - _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-269] - _ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-270] - _ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-271] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-272] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-273] - _ = x[ErrEvaluatorBindingDoesNotExist-274] - _ = x[ErrMissingHeaders-275] - _ = x[ErrInvalidColumnIndex-276] - _ = x[ErrAdminConfigNotificationTargetsFailed-277] - _ = x[ErrAdminProfilerNotEnabled-278] - _ = x[ErrInvalidDecompressedSize-279] - _ = x[ErrAddUserInvalidArgument-280] - _ = x[ErrAdminAccountNotEligible-281] - _ = x[ErrAccountNotEligible-282] - _ = x[ErrAdminServiceAccountNotFound-283] - _ = x[ErrPostPolicyConditionInvalidFormat-284] + _ = x[ErrAccessKeyDisabled-9] + _ = x[ErrInvalidBucketName-10] + _ = x[ErrInvalidDigest-11] + _ = x[ErrInvalidRange-12] + _ = x[ErrInvalidRangePartNumber-13] + _ = x[ErrInvalidCopyPartRange-14] + _ = x[ErrInvalidCopyPartRangeSource-15] + _ = x[ErrInvalidMaxKeys-16] + _ = x[ErrInvalidEncodingMethod-17] + _ = x[ErrInvalidMaxUploads-18] + _ = x[ErrInvalidMaxParts-19] + _ = x[ErrInvalidPartNumberMarker-20] + _ = x[ErrInvalidPartNumber-21] + _ = x[ErrInvalidRequestBody-22] + _ = x[ErrInvalidCopySource-23] + _ = x[ErrInvalidMetadataDirective-24] + _ = x[ErrInvalidCopyDest-25] + _ = x[ErrInvalidPolicyDocument-26] + _ = x[ErrInvalidObjectState-27] + _ = x[ErrMalformedXML-28] + _ = x[ErrMissingContentLength-29] + _ = x[ErrMissingContentMD5-30] + _ = x[ErrMissingRequestBodyError-31] + _ = x[ErrMissingSecurityHeader-32] + _ = x[ErrNoSuchBucket-33] + _ = x[ErrNoSuchBucketPolicy-34] + _ = x[ErrNoSuchBucketLifecycle-35] + _ = x[ErrNoSuchLifecycleConfiguration-36] + _ = x[ErrInvalidLifecycleWithObjectLock-37] + _ = x[ErrNoSuchBucketSSEConfig-38] + _ = x[ErrNoSuchCORSConfiguration-39] + _ = x[ErrNoSuchWebsiteConfiguration-40] + _ = x[ErrReplicationConfigurationNotFoundError-41] + _ = x[ErrRemoteDestinationNotFoundError-42] + _ = x[ErrReplicationDestinationMissingLock-43] + _ = x[ErrRemoteTargetNotFoundError-44] + _ = x[ErrReplicationRemoteConnectionError-45] + _ = x[ErrReplicationBandwidthLimitError-46] + _ = x[ErrBucketRemoteIdenticalToSource-47] + _ = x[ErrBucketRemoteAlreadyExists-48] + _ = x[ErrBucketRemoteLabelInUse-49] + _ = x[ErrBucketRemoteArnTypeInvalid-50] + _ = x[ErrBucketRemoteArnInvalid-51] + _ = x[ErrBucketRemoteRemoveDisallowed-52] + _ = x[ErrRemoteTargetNotVersionedError-53] + _ = x[ErrReplicationSourceNotVersionedError-54] + _ = x[ErrReplicationNeedsVersioningError-55] + _ = x[ErrReplicationBucketNeedsVersioningError-56] + _ = x[ErrReplicationDenyEditError-57] + _ = x[ErrReplicationNoMatchingRuleError-58] + _ = x[ErrObjectRestoreAlreadyInProgress-59] + _ = x[ErrNoSuchKey-60] + _ = x[ErrNoSuchUpload-61] + _ = x[ErrInvalidVersionID-62] + _ = x[ErrNoSuchVersion-63] + _ = x[ErrNotImplemented-64] + _ = x[ErrPreconditionFailed-65] + _ = x[ErrRequestTimeTooSkewed-66] + _ = x[ErrSignatureDoesNotMatch-67] + _ = x[ErrMethodNotAllowed-68] + _ = x[ErrInvalidPart-69] + _ = x[ErrInvalidPartOrder-70] + _ = x[ErrAuthorizationHeaderMalformed-71] + _ = x[ErrMalformedPOSTRequest-72] + _ = x[ErrPOSTFileRequired-73] + _ = x[ErrSignatureVersionNotSupported-74] + _ = x[ErrBucketNotEmpty-75] + _ = x[ErrAllAccessDisabled-76] + _ = x[ErrMalformedPolicy-77] + _ = x[ErrMissingFields-78] + _ = x[ErrMissingCredTag-79] + _ = x[ErrCredMalformed-80] + _ = x[ErrInvalidRegion-81] + _ = x[ErrInvalidServiceS3-82] + _ = x[ErrInvalidServiceSTS-83] + _ = x[ErrInvalidRequestVersion-84] + _ = x[ErrMissingSignTag-85] + _ = x[ErrMissingSignHeadersTag-86] + _ = x[ErrMalformedDate-87] + _ = x[ErrMalformedPresignedDate-88] + _ = x[ErrMalformedCredentialDate-89] + _ = x[ErrMalformedCredentialRegion-90] + _ = x[ErrMalformedExpires-91] + _ = x[ErrNegativeExpires-92] + _ = x[ErrAuthHeaderEmpty-93] + _ = x[ErrExpiredPresignRequest-94] + _ = x[ErrRequestNotReadyYet-95] + _ = x[ErrUnsignedHeaders-96] + _ = x[ErrMissingDateHeader-97] + _ = x[ErrInvalidQuerySignatureAlgo-98] + _ = x[ErrInvalidQueryParams-99] + _ = x[ErrBucketAlreadyOwnedByYou-100] + _ = x[ErrInvalidDuration-101] + _ = x[ErrBucketAlreadyExists-102] + _ = x[ErrMetadataTooLarge-103] + _ = x[ErrUnsupportedMetadata-104] + _ = x[ErrMaximumExpires-105] + _ = x[ErrSlowDown-106] + _ = x[ErrInvalidPrefixMarker-107] + _ = x[ErrBadRequest-108] + _ = x[ErrKeyTooLongError-109] + _ = x[ErrInvalidBucketObjectLockConfiguration-110] + _ = x[ErrObjectLockConfigurationNotFound-111] + _ = x[ErrObjectLockConfigurationNotAllowed-112] + _ = x[ErrNoSuchObjectLockConfiguration-113] + _ = x[ErrObjectLocked-114] + _ = x[ErrInvalidRetentionDate-115] + _ = x[ErrPastObjectLockRetainDate-116] + _ = x[ErrUnknownWORMModeDirective-117] + _ = x[ErrBucketTaggingNotFound-118] + _ = x[ErrObjectLockInvalidHeaders-119] + _ = x[ErrInvalidTagDirective-120] + _ = x[ErrInvalidEncryptionMethod-121] + _ = x[ErrInsecureSSECustomerRequest-122] + _ = x[ErrSSEMultipartEncrypted-123] + _ = x[ErrSSEEncryptedObject-124] + _ = x[ErrInvalidEncryptionParameters-125] + _ = x[ErrInvalidSSECustomerAlgorithm-126] + _ = x[ErrInvalidSSECustomerKey-127] + _ = x[ErrMissingSSECustomerKey-128] + _ = x[ErrMissingSSECustomerKeyMD5-129] + _ = x[ErrSSECustomerKeyMD5Mismatch-130] + _ = x[ErrInvalidSSECustomerParameters-131] + _ = x[ErrIncompatibleEncryptionMethod-132] + _ = x[ErrKMSNotConfigured-133] + _ = x[ErrNoAccessKey-134] + _ = x[ErrInvalidToken-135] + _ = x[ErrEventNotification-136] + _ = x[ErrARNNotification-137] + _ = x[ErrRegionNotification-138] + _ = x[ErrOverlappingFilterNotification-139] + _ = x[ErrFilterNameInvalid-140] + _ = x[ErrFilterNamePrefix-141] + _ = x[ErrFilterNameSuffix-142] + _ = x[ErrFilterValueInvalid-143] + _ = x[ErrOverlappingConfigs-144] + _ = x[ErrUnsupportedNotification-145] + _ = x[ErrContentSHA256Mismatch-146] + _ = x[ErrReadQuorum-147] + _ = x[ErrWriteQuorum-148] + _ = x[ErrStorageFull-149] + _ = x[ErrRequestBodyParse-150] + _ = x[ErrObjectExistsAsDirectory-151] + _ = x[ErrInvalidObjectName-152] + _ = x[ErrInvalidObjectNamePrefixSlash-153] + _ = x[ErrInvalidResourceName-154] + _ = x[ErrServerNotInitialized-155] + _ = x[ErrOperationTimedOut-156] + _ = x[ErrClientDisconnected-157] + _ = x[ErrOperationMaxedOut-158] + _ = x[ErrInvalidRequest-159] + _ = x[ErrTransitionStorageClassNotFoundError-160] + _ = x[ErrInvalidStorageClass-161] + _ = x[ErrBackendDown-162] + _ = x[ErrMalformedJSON-163] + _ = x[ErrAdminNoSuchUser-164] + _ = x[ErrAdminNoSuchGroup-165] + _ = x[ErrAdminGroupNotEmpty-166] + _ = x[ErrAdminNoSuchPolicy-167] + _ = x[ErrAdminInvalidArgument-168] + _ = x[ErrAdminInvalidAccessKey-169] + _ = x[ErrAdminInvalidSecretKey-170] + _ = x[ErrAdminConfigNoQuorum-171] + _ = x[ErrAdminConfigTooLarge-172] + _ = x[ErrAdminConfigBadJSON-173] + _ = x[ErrAdminConfigDuplicateKeys-174] + _ = x[ErrAdminCredentialsMismatch-175] + _ = x[ErrInsecureClientRequest-176] + _ = x[ErrObjectTampered-177] + _ = x[ErrSiteReplicationInvalidRequest-178] + _ = x[ErrSiteReplicationPeerResp-179] + _ = x[ErrSiteReplicationBackendIssue-180] + _ = x[ErrSiteReplicationServiceAccountError-181] + _ = x[ErrSiteReplicationBucketConfigError-182] + _ = x[ErrSiteReplicationBucketMetaError-183] + _ = x[ErrSiteReplicationIAMError-184] + _ = x[ErrAdminBucketQuotaExceeded-185] + _ = x[ErrAdminNoSuchQuotaConfiguration-186] + _ = x[ErrHealNotImplemented-187] + _ = x[ErrHealNoSuchProcess-188] + _ = x[ErrHealInvalidClientToken-189] + _ = x[ErrHealMissingBucket-190] + _ = x[ErrHealAlreadyRunning-191] + _ = x[ErrHealOverlappingPaths-192] + _ = x[ErrIncorrectContinuationToken-193] + _ = x[ErrEmptyRequestBody-194] + _ = x[ErrUnsupportedFunction-195] + _ = x[ErrInvalidExpressionType-196] + _ = x[ErrBusy-197] + _ = x[ErrUnauthorizedAccess-198] + _ = x[ErrExpressionTooLong-199] + _ = x[ErrIllegalSQLFunctionArgument-200] + _ = x[ErrInvalidKeyPath-201] + _ = x[ErrInvalidCompressionFormat-202] + _ = x[ErrInvalidFileHeaderInfo-203] + _ = x[ErrInvalidJSONType-204] + _ = x[ErrInvalidQuoteFields-205] + _ = x[ErrInvalidRequestParameter-206] + _ = x[ErrInvalidDataType-207] + _ = x[ErrInvalidTextEncoding-208] + _ = x[ErrInvalidDataSource-209] + _ = x[ErrInvalidTableAlias-210] + _ = x[ErrMissingRequiredParameter-211] + _ = x[ErrObjectSerializationConflict-212] + _ = x[ErrUnsupportedSQLOperation-213] + _ = x[ErrUnsupportedSQLStructure-214] + _ = x[ErrUnsupportedSyntax-215] + _ = x[ErrUnsupportedRangeHeader-216] + _ = x[ErrLexerInvalidChar-217] + _ = x[ErrLexerInvalidOperator-218] + _ = x[ErrLexerInvalidLiteral-219] + _ = x[ErrLexerInvalidIONLiteral-220] + _ = x[ErrParseExpectedDatePart-221] + _ = x[ErrParseExpectedKeyword-222] + _ = x[ErrParseExpectedTokenType-223] + _ = x[ErrParseExpected2TokenTypes-224] + _ = x[ErrParseExpectedNumber-225] + _ = x[ErrParseExpectedRightParenBuiltinFunctionCall-226] + _ = x[ErrParseExpectedTypeName-227] + _ = x[ErrParseExpectedWhenClause-228] + _ = x[ErrParseUnsupportedToken-229] + _ = x[ErrParseUnsupportedLiteralsGroupBy-230] + _ = x[ErrParseExpectedMember-231] + _ = x[ErrParseUnsupportedSelect-232] + _ = x[ErrParseUnsupportedCase-233] + _ = x[ErrParseUnsupportedCaseClause-234] + _ = x[ErrParseUnsupportedAlias-235] + _ = x[ErrParseUnsupportedSyntax-236] + _ = x[ErrParseUnknownOperator-237] + _ = x[ErrParseMissingIdentAfterAt-238] + _ = x[ErrParseUnexpectedOperator-239] + _ = x[ErrParseUnexpectedTerm-240] + _ = x[ErrParseUnexpectedToken-241] + _ = x[ErrParseUnexpectedKeyword-242] + _ = x[ErrParseExpectedExpression-243] + _ = x[ErrParseExpectedLeftParenAfterCast-244] + _ = x[ErrParseExpectedLeftParenValueConstructor-245] + _ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-246] + _ = x[ErrParseExpectedArgumentDelimiter-247] + _ = x[ErrParseCastArity-248] + _ = x[ErrParseInvalidTypeParam-249] + _ = x[ErrParseEmptySelect-250] + _ = x[ErrParseSelectMissingFrom-251] + _ = x[ErrParseExpectedIdentForGroupName-252] + _ = x[ErrParseExpectedIdentForAlias-253] + _ = x[ErrParseUnsupportedCallWithStar-254] + _ = x[ErrParseNonUnaryAgregateFunctionCall-255] + _ = x[ErrParseMalformedJoin-256] + _ = x[ErrParseExpectedIdentForAt-257] + _ = x[ErrParseAsteriskIsNotAloneInSelectList-258] + _ = x[ErrParseCannotMixSqbAndWildcardInSelectList-259] + _ = x[ErrParseInvalidContextForWildcardInSelectList-260] + _ = x[ErrIncorrectSQLFunctionArgumentType-261] + _ = x[ErrValueParseFailure-262] + _ = x[ErrEvaluatorInvalidArguments-263] + _ = x[ErrIntegerOverflow-264] + _ = x[ErrLikeInvalidInputs-265] + _ = x[ErrCastFailed-266] + _ = x[ErrInvalidCast-267] + _ = x[ErrEvaluatorInvalidTimestampFormatPattern-268] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-269] + _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-270] + _ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-271] + _ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-272] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-273] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-274] + _ = x[ErrEvaluatorBindingDoesNotExist-275] + _ = x[ErrMissingHeaders-276] + _ = x[ErrInvalidColumnIndex-277] + _ = x[ErrAdminConfigNotificationTargetsFailed-278] + _ = x[ErrAdminProfilerNotEnabled-279] + _ = x[ErrInvalidDecompressedSize-280] + _ = x[ErrAddUserInvalidArgument-281] + _ = x[ErrAdminAccountNotEligible-282] + _ = x[ErrAccountNotEligible-283] + _ = x[ErrAdminServiceAccountNotFound-284] + _ = x[ErrPostPolicyConditionInvalidFormat-285] } -const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationInvalidLifecycleWithObjectLockNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationDenyEditErrorReplicationNoMatchingRuleErrorObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledMalformedPolicyMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedCredentialRegionMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataMaximumExpiresSlowDownInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectiveInvalidEncryptionMethodInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchReadQuorumWriteQuorumStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameServerNotInitializedOperationTimedOutClientDisconnectedOperationMaxedOutInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchGroupAdminGroupNotEmptyAdminNoSuchPolicyAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminConfigDuplicateKeysAdminCredentialsMismatchInsecureClientRequestObjectTamperedSiteReplicationInvalidRequestSiteReplicationPeerRespSiteReplicationBackendIssueSiteReplicationServiceAccountErrorSiteReplicationBucketConfigErrorSiteReplicationBucketMetaErrorSiteReplicationIAMErrorAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeaderLexerInvalidCharLexerInvalidOperatorLexerInvalidLiteralLexerInvalidIONLiteralParseExpectedDatePartParseExpectedKeywordParseExpectedTokenTypeParseExpected2TokenTypesParseExpectedNumberParseExpectedRightParenBuiltinFunctionCallParseExpectedTypeNameParseExpectedWhenClauseParseUnsupportedTokenParseUnsupportedLiteralsGroupByParseExpectedMemberParseUnsupportedSelectParseUnsupportedCaseParseUnsupportedCaseClauseParseUnsupportedAliasParseUnsupportedSyntaxParseUnknownOperatorParseMissingIdentAfterAtParseUnexpectedOperatorParseUnexpectedTermParseUnexpectedTokenParseUnexpectedKeywordParseExpectedExpressionParseExpectedLeftParenAfterCastParseExpectedLeftParenValueConstructorParseExpectedLeftParenBuiltinFunctionCallParseExpectedArgumentDelimiterParseCastArityParseInvalidTypeParamParseEmptySelectParseSelectMissingFromParseExpectedIdentForGroupNameParseExpectedIdentForAliasParseUnsupportedCallWithStarParseNonUnaryAgregateFunctionCallParseMalformedJoinParseExpectedIdentForAtParseAsteriskIsNotAloneInSelectListParseCannotMixSqbAndWildcardInSelectListParseInvalidContextForWildcardInSelectListIncorrectSQLFunctionArgumentTypeValueParseFailureEvaluatorInvalidArgumentsIntegerOverflowLikeInvalidInputsCastFailedInvalidCastEvaluatorInvalidTimestampFormatPatternEvaluatorInvalidTimestampFormatPatternSymbolForParsingEvaluatorTimestampFormatPatternDuplicateFieldsEvaluatorTimestampFormatPatternHourClockAmPmMismatchEvaluatorUnterminatedTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternSymbolEvaluatorBindingDoesNotExistMissingHeadersInvalidColumnIndexAdminConfigNotificationTargetsFailedAdminProfilerNotEnabledInvalidDecompressedSizeAddUserInvalidArgumentAdminAccountNotEligibleAccountNotEligibleAdminServiceAccountNotFoundPostPolicyConditionInvalidFormat" +const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDAccessKeyDisabledInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationInvalidLifecycleWithObjectLockNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationDenyEditErrorReplicationNoMatchingRuleErrorObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledMalformedPolicyMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedCredentialRegionMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataMaximumExpiresSlowDownInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectiveInvalidEncryptionMethodInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchReadQuorumWriteQuorumStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameServerNotInitializedOperationTimedOutClientDisconnectedOperationMaxedOutInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchGroupAdminGroupNotEmptyAdminNoSuchPolicyAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminConfigDuplicateKeysAdminCredentialsMismatchInsecureClientRequestObjectTamperedSiteReplicationInvalidRequestSiteReplicationPeerRespSiteReplicationBackendIssueSiteReplicationServiceAccountErrorSiteReplicationBucketConfigErrorSiteReplicationBucketMetaErrorSiteReplicationIAMErrorAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeaderLexerInvalidCharLexerInvalidOperatorLexerInvalidLiteralLexerInvalidIONLiteralParseExpectedDatePartParseExpectedKeywordParseExpectedTokenTypeParseExpected2TokenTypesParseExpectedNumberParseExpectedRightParenBuiltinFunctionCallParseExpectedTypeNameParseExpectedWhenClauseParseUnsupportedTokenParseUnsupportedLiteralsGroupByParseExpectedMemberParseUnsupportedSelectParseUnsupportedCaseParseUnsupportedCaseClauseParseUnsupportedAliasParseUnsupportedSyntaxParseUnknownOperatorParseMissingIdentAfterAtParseUnexpectedOperatorParseUnexpectedTermParseUnexpectedTokenParseUnexpectedKeywordParseExpectedExpressionParseExpectedLeftParenAfterCastParseExpectedLeftParenValueConstructorParseExpectedLeftParenBuiltinFunctionCallParseExpectedArgumentDelimiterParseCastArityParseInvalidTypeParamParseEmptySelectParseSelectMissingFromParseExpectedIdentForGroupNameParseExpectedIdentForAliasParseUnsupportedCallWithStarParseNonUnaryAgregateFunctionCallParseMalformedJoinParseExpectedIdentForAtParseAsteriskIsNotAloneInSelectListParseCannotMixSqbAndWildcardInSelectListParseInvalidContextForWildcardInSelectListIncorrectSQLFunctionArgumentTypeValueParseFailureEvaluatorInvalidArgumentsIntegerOverflowLikeInvalidInputsCastFailedInvalidCastEvaluatorInvalidTimestampFormatPatternEvaluatorInvalidTimestampFormatPatternSymbolForParsingEvaluatorTimestampFormatPatternDuplicateFieldsEvaluatorTimestampFormatPatternHourClockAmPmMismatchEvaluatorUnterminatedTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternSymbolEvaluatorBindingDoesNotExistMissingHeadersInvalidColumnIndexAdminConfigNotificationTargetsFailedAdminProfilerNotEnabledInvalidDecompressedSizeAddUserInvalidArgumentAdminAccountNotEligibleAccountNotEligibleAdminServiceAccountNotFoundPostPolicyConditionInvalidFormat" -var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 142, 154, 176, 196, 222, 236, 257, 274, 289, 312, 329, 347, 364, 388, 403, 424, 442, 454, 474, 491, 514, 535, 547, 565, 586, 614, 644, 665, 688, 714, 751, 781, 814, 839, 871, 901, 930, 955, 977, 1003, 1025, 1053, 1082, 1116, 1147, 1184, 1208, 1238, 1268, 1277, 1289, 1305, 1318, 1332, 1350, 1370, 1391, 1407, 1418, 1434, 1462, 1482, 1498, 1526, 1540, 1557, 1572, 1585, 1599, 1612, 1625, 1641, 1658, 1679, 1693, 1714, 1727, 1749, 1772, 1797, 1813, 1828, 1843, 1864, 1882, 1897, 1914, 1939, 1957, 1980, 1995, 2014, 2030, 2049, 2063, 2071, 2090, 2100, 2115, 2151, 2182, 2215, 2244, 2256, 2276, 2300, 2324, 2345, 2369, 2388, 2411, 2437, 2458, 2476, 2503, 2530, 2551, 2572, 2596, 2621, 2649, 2677, 2693, 2704, 2716, 2733, 2748, 2766, 2795, 2812, 2828, 2844, 2862, 2880, 2903, 2924, 2934, 2945, 2956, 2972, 2995, 3012, 3040, 3059, 3079, 3096, 3114, 3131, 3145, 3180, 3199, 3210, 3223, 3238, 3254, 3272, 3289, 3309, 3330, 3351, 3370, 3389, 3407, 3431, 3455, 3476, 3490, 3519, 3542, 3569, 3603, 3635, 3665, 3688, 3712, 3741, 3759, 3776, 3798, 3815, 3833, 3853, 3879, 3895, 3914, 3935, 3939, 3957, 3974, 4000, 4014, 4038, 4059, 4074, 4092, 4115, 4130, 4149, 4166, 4183, 4207, 4234, 4257, 4280, 4297, 4319, 4335, 4355, 4374, 4396, 4417, 4437, 4459, 4483, 4502, 4544, 4565, 4588, 4609, 4640, 4659, 4681, 4701, 4727, 4748, 4770, 4790, 4814, 4837, 4856, 4876, 4898, 4921, 4952, 4990, 5031, 5061, 5075, 5096, 5112, 5134, 5164, 5190, 5218, 5251, 5269, 5292, 5327, 5367, 5409, 5441, 5458, 5483, 5498, 5515, 5525, 5536, 5574, 5628, 5674, 5726, 5774, 5817, 5861, 5889, 5903, 5921, 5957, 5980, 6003, 6025, 6048, 6066, 6093, 6125} +var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 146, 159, 171, 193, 213, 239, 253, 274, 291, 306, 329, 346, 364, 381, 405, 420, 441, 459, 471, 491, 508, 531, 552, 564, 582, 603, 631, 661, 682, 705, 731, 768, 798, 831, 856, 888, 918, 947, 972, 994, 1020, 1042, 1070, 1099, 1133, 1164, 1201, 1225, 1255, 1285, 1294, 1306, 1322, 1335, 1349, 1367, 1387, 1408, 1424, 1435, 1451, 1479, 1499, 1515, 1543, 1557, 1574, 1589, 1602, 1616, 1629, 1642, 1658, 1675, 1696, 1710, 1731, 1744, 1766, 1789, 1814, 1830, 1845, 1860, 1881, 1899, 1914, 1931, 1956, 1974, 1997, 2012, 2031, 2047, 2066, 2080, 2088, 2107, 2117, 2132, 2168, 2199, 2232, 2261, 2273, 2293, 2317, 2341, 2362, 2386, 2405, 2428, 2454, 2475, 2493, 2520, 2547, 2568, 2589, 2613, 2638, 2666, 2694, 2710, 2721, 2733, 2750, 2765, 2783, 2812, 2829, 2845, 2861, 2879, 2897, 2920, 2941, 2951, 2962, 2973, 2989, 3012, 3029, 3057, 3076, 3096, 3113, 3131, 3148, 3162, 3197, 3216, 3227, 3240, 3255, 3271, 3289, 3306, 3326, 3347, 3368, 3387, 3406, 3424, 3448, 3472, 3493, 3507, 3536, 3559, 3586, 3620, 3652, 3682, 3705, 3729, 3758, 3776, 3793, 3815, 3832, 3850, 3870, 3896, 3912, 3931, 3952, 3956, 3974, 3991, 4017, 4031, 4055, 4076, 4091, 4109, 4132, 4147, 4166, 4183, 4200, 4224, 4251, 4274, 4297, 4314, 4336, 4352, 4372, 4391, 4413, 4434, 4454, 4476, 4500, 4519, 4561, 4582, 4605, 4626, 4657, 4676, 4698, 4718, 4744, 4765, 4787, 4807, 4831, 4854, 4873, 4893, 4915, 4938, 4969, 5007, 5048, 5078, 5092, 5113, 5129, 5151, 5181, 5207, 5235, 5268, 5286, 5309, 5344, 5384, 5426, 5458, 5475, 5500, 5515, 5532, 5542, 5553, 5591, 5645, 5691, 5743, 5791, 5834, 5878, 5906, 5920, 5938, 5974, 5997, 6020, 6042, 6065, 6083, 6110, 6142} func (i APIErrorCode) String() string { if i < 0 || i >= APIErrorCode(len(_APIErrorCode_index)-1) { diff --git a/cmd/signature-v4-utils.go b/cmd/signature-v4-utils.go index e1f643a92..8bceccb2e 100644 --- a/cmd/signature-v4-utils.go +++ b/cmd/signature-v4-utils.go @@ -154,6 +154,11 @@ func checkKeyValid(r *http.Request, accessKey string) (auth.Credentials, bool, A // Check if the access key is part of users credentials. ucred, ok := globalIAMSys.GetUser(r.Context(), accessKey) if !ok { + // Credentials will be invalid but and disabled + // return a different error in such a scenario. + if ucred.Status == auth.AccountOff { + return cred, false, ErrAccessKeyDisabled + } return cred, false, ErrInvalidAccessKeyID } cred = ucred