diff --git a/cmd/admin-handlers-users.go b/cmd/admin-handlers-users.go index 641d58195..a7439f20b 100644 --- a/cmd/admin-handlers-users.go +++ b/cmd/admin-handlers-users.go @@ -1719,6 +1719,12 @@ func (a adminAPIHandlers) AddCannedPolicy(w http.ResponseWriter, r *http.Request } setReqInfoPolicyName(ctx, policyName) + // Reject policy names with commas. + if strings.Contains(policyName, ",") { + writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrPolicyInvalidName), r.URL) + return + } + // Error out if Content-Length is missing. if r.ContentLength <= 0 { writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrMissingContentLength), r.URL) diff --git a/cmd/admin-handlers-users_test.go b/cmd/admin-handlers-users_test.go index a33b81a6f..b3f31a386 100644 --- a/cmd/admin-handlers-users_test.go +++ b/cmd/admin-handlers-users_test.go @@ -716,6 +716,12 @@ func (s *TestSuiteIAM) TestCannedPolicies(c *check) { c.Fatalf("policy info err: %v", err) } + // Check that policy with comma is rejected. + err = s.adm.AddCannedPolicy(ctx, "invalid,policy", policyBytes) + if err == nil { + c.Fatalf("invalid policy created successfully") + } + infoStr := string(info) if !strings.Contains(infoStr, `"s3:PutObject"`) || !strings.Contains(infoStr, ":"+bucket+"/") { c.Fatalf("policy contains unexpected content!") diff --git a/cmd/api-errors.go b/cmd/api-errors.go index 6566a784b..aa5833201 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -213,6 +213,7 @@ const ( ErrPolicyAlreadyAttached ErrPolicyNotAttached ErrExcessData + ErrPolicyInvalidName // Add new error codes here. // SSE-S3/SSE-KMS related API errors @@ -561,6 +562,11 @@ var errorCodes = errorCodeMap{ Description: "More data provided than indicated content length", HTTPStatusCode: http.StatusBadRequest, }, + ErrPolicyInvalidName: { + Code: "PolicyInvalidName", + Description: "Policy name may not contain comma", + HTTPStatusCode: http.StatusBadRequest, + }, ErrPolicyTooLarge: { Code: "PolicyTooLarge", Description: "Policy exceeds the maximum allowed document size.", diff --git a/cmd/apierrorcode_string.go b/cmd/apierrorcode_string.go index fbbc6618b..41b7382b2 100644 --- a/cmd/apierrorcode_string.go +++ b/cmd/apierrorcode_string.go @@ -139,208 +139,209 @@ func _() { _ = x[ErrPolicyAlreadyAttached-128] _ = x[ErrPolicyNotAttached-129] _ = x[ErrExcessData-130] - _ = x[ErrInvalidEncryptionMethod-131] - _ = x[ErrInvalidEncryptionKeyID-132] - _ = x[ErrInsecureSSECustomerRequest-133] - _ = x[ErrSSEMultipartEncrypted-134] - _ = x[ErrSSEEncryptedObject-135] - _ = x[ErrInvalidEncryptionParameters-136] - _ = x[ErrInvalidEncryptionParametersSSEC-137] - _ = x[ErrInvalidSSECustomerAlgorithm-138] - _ = x[ErrInvalidSSECustomerKey-139] - _ = x[ErrMissingSSECustomerKey-140] - _ = x[ErrMissingSSECustomerKeyMD5-141] - _ = x[ErrSSECustomerKeyMD5Mismatch-142] - _ = x[ErrInvalidSSECustomerParameters-143] - _ = x[ErrIncompatibleEncryptionMethod-144] - _ = x[ErrKMSNotConfigured-145] - _ = x[ErrKMSKeyNotFoundException-146] - _ = x[ErrKMSDefaultKeyAlreadyConfigured-147] - _ = x[ErrNoAccessKey-148] - _ = x[ErrInvalidToken-149] - _ = x[ErrEventNotification-150] - _ = x[ErrARNNotification-151] - _ = x[ErrRegionNotification-152] - _ = x[ErrOverlappingFilterNotification-153] - _ = x[ErrFilterNameInvalid-154] - _ = x[ErrFilterNamePrefix-155] - _ = x[ErrFilterNameSuffix-156] - _ = x[ErrFilterValueInvalid-157] - _ = x[ErrOverlappingConfigs-158] - _ = x[ErrUnsupportedNotification-159] - _ = x[ErrContentSHA256Mismatch-160] - _ = x[ErrContentChecksumMismatch-161] - _ = x[ErrStorageFull-162] - _ = x[ErrRequestBodyParse-163] - _ = x[ErrObjectExistsAsDirectory-164] - _ = x[ErrInvalidObjectName-165] - _ = x[ErrInvalidObjectNamePrefixSlash-166] - _ = x[ErrInvalidResourceName-167] - _ = x[ErrInvalidLifecycleQueryParameter-168] - _ = x[ErrServerNotInitialized-169] - _ = x[ErrBucketMetadataNotInitialized-170] - _ = x[ErrRequestTimedout-171] - _ = x[ErrClientDisconnected-172] - _ = x[ErrTooManyRequests-173] - _ = x[ErrInvalidRequest-174] - _ = x[ErrTransitionStorageClassNotFoundError-175] - _ = x[ErrInvalidStorageClass-176] - _ = x[ErrBackendDown-177] - _ = x[ErrMalformedJSON-178] - _ = x[ErrAdminNoSuchUser-179] - _ = x[ErrAdminNoSuchUserLDAPWarn-180] - _ = x[ErrAdminLDAPExpectedLoginName-181] - _ = x[ErrAdminNoSuchGroup-182] - _ = x[ErrAdminGroupNotEmpty-183] - _ = x[ErrAdminGroupDisabled-184] - _ = x[ErrAdminInvalidGroupName-185] - _ = x[ErrAdminNoSuchJob-186] - _ = x[ErrAdminNoSuchPolicy-187] - _ = x[ErrAdminPolicyChangeAlreadyApplied-188] - _ = x[ErrAdminInvalidArgument-189] - _ = x[ErrAdminInvalidAccessKey-190] - _ = x[ErrAdminInvalidSecretKey-191] - _ = x[ErrAdminConfigNoQuorum-192] - _ = x[ErrAdminConfigTooLarge-193] - _ = x[ErrAdminConfigBadJSON-194] - _ = x[ErrAdminNoSuchConfigTarget-195] - _ = x[ErrAdminConfigEnvOverridden-196] - _ = x[ErrAdminConfigDuplicateKeys-197] - _ = x[ErrAdminConfigInvalidIDPType-198] - _ = x[ErrAdminConfigLDAPNonDefaultConfigName-199] - _ = x[ErrAdminConfigLDAPValidation-200] - _ = x[ErrAdminConfigIDPCfgNameAlreadyExists-201] - _ = x[ErrAdminConfigIDPCfgNameDoesNotExist-202] - _ = x[ErrInsecureClientRequest-203] - _ = x[ErrObjectTampered-204] - _ = x[ErrAdminLDAPNotEnabled-205] - _ = x[ErrSiteReplicationInvalidRequest-206] - _ = x[ErrSiteReplicationPeerResp-207] - _ = x[ErrSiteReplicationBackendIssue-208] - _ = x[ErrSiteReplicationServiceAccountError-209] - _ = x[ErrSiteReplicationBucketConfigError-210] - _ = x[ErrSiteReplicationBucketMetaError-211] - _ = x[ErrSiteReplicationIAMError-212] - _ = x[ErrSiteReplicationConfigMissing-213] - _ = x[ErrSiteReplicationIAMConfigMismatch-214] - _ = x[ErrAdminRebalanceAlreadyStarted-215] - _ = x[ErrAdminRebalanceNotStarted-216] - _ = x[ErrAdminBucketQuotaExceeded-217] - _ = x[ErrAdminNoSuchQuotaConfiguration-218] - _ = x[ErrHealNotImplemented-219] - _ = x[ErrHealNoSuchProcess-220] - _ = x[ErrHealInvalidClientToken-221] - _ = x[ErrHealMissingBucket-222] - _ = x[ErrHealAlreadyRunning-223] - _ = x[ErrHealOverlappingPaths-224] - _ = x[ErrIncorrectContinuationToken-225] - _ = x[ErrEmptyRequestBody-226] - _ = x[ErrUnsupportedFunction-227] - _ = x[ErrInvalidExpressionType-228] - _ = x[ErrBusy-229] - _ = x[ErrUnauthorizedAccess-230] - _ = x[ErrExpressionTooLong-231] - _ = x[ErrIllegalSQLFunctionArgument-232] - _ = x[ErrInvalidKeyPath-233] - _ = x[ErrInvalidCompressionFormat-234] - _ = x[ErrInvalidFileHeaderInfo-235] - _ = x[ErrInvalidJSONType-236] - _ = x[ErrInvalidQuoteFields-237] - _ = x[ErrInvalidRequestParameter-238] - _ = x[ErrInvalidDataType-239] - _ = x[ErrInvalidTextEncoding-240] - _ = x[ErrInvalidDataSource-241] - _ = x[ErrInvalidTableAlias-242] - _ = x[ErrMissingRequiredParameter-243] - _ = x[ErrObjectSerializationConflict-244] - _ = x[ErrUnsupportedSQLOperation-245] - _ = x[ErrUnsupportedSQLStructure-246] - _ = x[ErrUnsupportedSyntax-247] - _ = x[ErrUnsupportedRangeHeader-248] - _ = x[ErrLexerInvalidChar-249] - _ = x[ErrLexerInvalidOperator-250] - _ = x[ErrLexerInvalidLiteral-251] - _ = x[ErrLexerInvalidIONLiteral-252] - _ = x[ErrParseExpectedDatePart-253] - _ = x[ErrParseExpectedKeyword-254] - _ = x[ErrParseExpectedTokenType-255] - _ = x[ErrParseExpected2TokenTypes-256] - _ = x[ErrParseExpectedNumber-257] - _ = x[ErrParseExpectedRightParenBuiltinFunctionCall-258] - _ = x[ErrParseExpectedTypeName-259] - _ = x[ErrParseExpectedWhenClause-260] - _ = x[ErrParseUnsupportedToken-261] - _ = x[ErrParseUnsupportedLiteralsGroupBy-262] - _ = x[ErrParseExpectedMember-263] - _ = x[ErrParseUnsupportedSelect-264] - _ = x[ErrParseUnsupportedCase-265] - _ = x[ErrParseUnsupportedCaseClause-266] - _ = x[ErrParseUnsupportedAlias-267] - _ = x[ErrParseUnsupportedSyntax-268] - _ = x[ErrParseUnknownOperator-269] - _ = x[ErrParseMissingIdentAfterAt-270] - _ = x[ErrParseUnexpectedOperator-271] - _ = x[ErrParseUnexpectedTerm-272] - _ = x[ErrParseUnexpectedToken-273] - _ = x[ErrParseUnexpectedKeyword-274] - _ = x[ErrParseExpectedExpression-275] - _ = x[ErrParseExpectedLeftParenAfterCast-276] - _ = x[ErrParseExpectedLeftParenValueConstructor-277] - _ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-278] - _ = x[ErrParseExpectedArgumentDelimiter-279] - _ = x[ErrParseCastArity-280] - _ = x[ErrParseInvalidTypeParam-281] - _ = x[ErrParseEmptySelect-282] - _ = x[ErrParseSelectMissingFrom-283] - _ = x[ErrParseExpectedIdentForGroupName-284] - _ = x[ErrParseExpectedIdentForAlias-285] - _ = x[ErrParseUnsupportedCallWithStar-286] - _ = x[ErrParseNonUnaryAggregateFunctionCall-287] - _ = x[ErrParseMalformedJoin-288] - _ = x[ErrParseExpectedIdentForAt-289] - _ = x[ErrParseAsteriskIsNotAloneInSelectList-290] - _ = x[ErrParseCannotMixSqbAndWildcardInSelectList-291] - _ = x[ErrParseInvalidContextForWildcardInSelectList-292] - _ = x[ErrIncorrectSQLFunctionArgumentType-293] - _ = x[ErrValueParseFailure-294] - _ = x[ErrEvaluatorInvalidArguments-295] - _ = x[ErrIntegerOverflow-296] - _ = x[ErrLikeInvalidInputs-297] - _ = x[ErrCastFailed-298] - _ = x[ErrInvalidCast-299] - _ = x[ErrEvaluatorInvalidTimestampFormatPattern-300] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-301] - _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-302] - _ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-303] - _ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-304] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-305] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-306] - _ = x[ErrEvaluatorBindingDoesNotExist-307] - _ = x[ErrMissingHeaders-308] - _ = x[ErrInvalidColumnIndex-309] - _ = x[ErrAdminConfigNotificationTargetsFailed-310] - _ = x[ErrAdminProfilerNotEnabled-311] - _ = x[ErrInvalidDecompressedSize-312] - _ = x[ErrAddUserInvalidArgument-313] - _ = x[ErrAddUserValidUTF-314] - _ = x[ErrAdminResourceInvalidArgument-315] - _ = x[ErrAdminAccountNotEligible-316] - _ = x[ErrAccountNotEligible-317] - _ = x[ErrAdminServiceAccountNotFound-318] - _ = x[ErrPostPolicyConditionInvalidFormat-319] - _ = x[ErrInvalidChecksum-320] - _ = x[ErrLambdaARNInvalid-321] - _ = x[ErrLambdaARNNotFound-322] - _ = x[ErrInvalidAttributeName-323] - _ = x[ErrAdminNoAccessKey-324] - _ = x[ErrAdminNoSecretKey-325] - _ = x[ErrIAMNotInitialized-326] - _ = x[apiErrCodeEnd-327] + _ = x[ErrPolicyInvalidName-131] + _ = x[ErrInvalidEncryptionMethod-132] + _ = x[ErrInvalidEncryptionKeyID-133] + _ = x[ErrInsecureSSECustomerRequest-134] + _ = x[ErrSSEMultipartEncrypted-135] + _ = x[ErrSSEEncryptedObject-136] + _ = x[ErrInvalidEncryptionParameters-137] + _ = x[ErrInvalidEncryptionParametersSSEC-138] + _ = x[ErrInvalidSSECustomerAlgorithm-139] + _ = x[ErrInvalidSSECustomerKey-140] + _ = x[ErrMissingSSECustomerKey-141] + _ = x[ErrMissingSSECustomerKeyMD5-142] + _ = x[ErrSSECustomerKeyMD5Mismatch-143] + _ = x[ErrInvalidSSECustomerParameters-144] + _ = x[ErrIncompatibleEncryptionMethod-145] + _ = x[ErrKMSNotConfigured-146] + _ = x[ErrKMSKeyNotFoundException-147] + _ = x[ErrKMSDefaultKeyAlreadyConfigured-148] + _ = x[ErrNoAccessKey-149] + _ = x[ErrInvalidToken-150] + _ = x[ErrEventNotification-151] + _ = x[ErrARNNotification-152] + _ = x[ErrRegionNotification-153] + _ = x[ErrOverlappingFilterNotification-154] + _ = x[ErrFilterNameInvalid-155] + _ = x[ErrFilterNamePrefix-156] + _ = x[ErrFilterNameSuffix-157] + _ = x[ErrFilterValueInvalid-158] + _ = x[ErrOverlappingConfigs-159] + _ = x[ErrUnsupportedNotification-160] + _ = x[ErrContentSHA256Mismatch-161] + _ = x[ErrContentChecksumMismatch-162] + _ = x[ErrStorageFull-163] + _ = x[ErrRequestBodyParse-164] + _ = x[ErrObjectExistsAsDirectory-165] + _ = x[ErrInvalidObjectName-166] + _ = x[ErrInvalidObjectNamePrefixSlash-167] + _ = x[ErrInvalidResourceName-168] + _ = x[ErrInvalidLifecycleQueryParameter-169] + _ = x[ErrServerNotInitialized-170] + _ = x[ErrBucketMetadataNotInitialized-171] + _ = x[ErrRequestTimedout-172] + _ = x[ErrClientDisconnected-173] + _ = x[ErrTooManyRequests-174] + _ = x[ErrInvalidRequest-175] + _ = x[ErrTransitionStorageClassNotFoundError-176] + _ = x[ErrInvalidStorageClass-177] + _ = x[ErrBackendDown-178] + _ = x[ErrMalformedJSON-179] + _ = x[ErrAdminNoSuchUser-180] + _ = x[ErrAdminNoSuchUserLDAPWarn-181] + _ = x[ErrAdminLDAPExpectedLoginName-182] + _ = x[ErrAdminNoSuchGroup-183] + _ = x[ErrAdminGroupNotEmpty-184] + _ = x[ErrAdminGroupDisabled-185] + _ = x[ErrAdminInvalidGroupName-186] + _ = x[ErrAdminNoSuchJob-187] + _ = x[ErrAdminNoSuchPolicy-188] + _ = x[ErrAdminPolicyChangeAlreadyApplied-189] + _ = x[ErrAdminInvalidArgument-190] + _ = x[ErrAdminInvalidAccessKey-191] + _ = x[ErrAdminInvalidSecretKey-192] + _ = x[ErrAdminConfigNoQuorum-193] + _ = x[ErrAdminConfigTooLarge-194] + _ = x[ErrAdminConfigBadJSON-195] + _ = x[ErrAdminNoSuchConfigTarget-196] + _ = x[ErrAdminConfigEnvOverridden-197] + _ = x[ErrAdminConfigDuplicateKeys-198] + _ = x[ErrAdminConfigInvalidIDPType-199] + _ = x[ErrAdminConfigLDAPNonDefaultConfigName-200] + _ = x[ErrAdminConfigLDAPValidation-201] + _ = x[ErrAdminConfigIDPCfgNameAlreadyExists-202] + _ = x[ErrAdminConfigIDPCfgNameDoesNotExist-203] + _ = x[ErrInsecureClientRequest-204] + _ = x[ErrObjectTampered-205] + _ = x[ErrAdminLDAPNotEnabled-206] + _ = x[ErrSiteReplicationInvalidRequest-207] + _ = x[ErrSiteReplicationPeerResp-208] + _ = x[ErrSiteReplicationBackendIssue-209] + _ = x[ErrSiteReplicationServiceAccountError-210] + _ = x[ErrSiteReplicationBucketConfigError-211] + _ = x[ErrSiteReplicationBucketMetaError-212] + _ = x[ErrSiteReplicationIAMError-213] + _ = x[ErrSiteReplicationConfigMissing-214] + _ = x[ErrSiteReplicationIAMConfigMismatch-215] + _ = x[ErrAdminRebalanceAlreadyStarted-216] + _ = x[ErrAdminRebalanceNotStarted-217] + _ = x[ErrAdminBucketQuotaExceeded-218] + _ = x[ErrAdminNoSuchQuotaConfiguration-219] + _ = x[ErrHealNotImplemented-220] + _ = x[ErrHealNoSuchProcess-221] + _ = x[ErrHealInvalidClientToken-222] + _ = x[ErrHealMissingBucket-223] + _ = x[ErrHealAlreadyRunning-224] + _ = x[ErrHealOverlappingPaths-225] + _ = x[ErrIncorrectContinuationToken-226] + _ = x[ErrEmptyRequestBody-227] + _ = x[ErrUnsupportedFunction-228] + _ = x[ErrInvalidExpressionType-229] + _ = x[ErrBusy-230] + _ = x[ErrUnauthorizedAccess-231] + _ = x[ErrExpressionTooLong-232] + _ = x[ErrIllegalSQLFunctionArgument-233] + _ = x[ErrInvalidKeyPath-234] + _ = x[ErrInvalidCompressionFormat-235] + _ = x[ErrInvalidFileHeaderInfo-236] + _ = x[ErrInvalidJSONType-237] + _ = x[ErrInvalidQuoteFields-238] + _ = x[ErrInvalidRequestParameter-239] + _ = x[ErrInvalidDataType-240] + _ = x[ErrInvalidTextEncoding-241] + _ = x[ErrInvalidDataSource-242] + _ = x[ErrInvalidTableAlias-243] + _ = x[ErrMissingRequiredParameter-244] + _ = x[ErrObjectSerializationConflict-245] + _ = x[ErrUnsupportedSQLOperation-246] + _ = x[ErrUnsupportedSQLStructure-247] + _ = x[ErrUnsupportedSyntax-248] + _ = x[ErrUnsupportedRangeHeader-249] + _ = x[ErrLexerInvalidChar-250] + _ = x[ErrLexerInvalidOperator-251] + _ = x[ErrLexerInvalidLiteral-252] + _ = x[ErrLexerInvalidIONLiteral-253] + _ = x[ErrParseExpectedDatePart-254] + _ = x[ErrParseExpectedKeyword-255] + _ = x[ErrParseExpectedTokenType-256] + _ = x[ErrParseExpected2TokenTypes-257] + _ = x[ErrParseExpectedNumber-258] + _ = x[ErrParseExpectedRightParenBuiltinFunctionCall-259] + _ = x[ErrParseExpectedTypeName-260] + _ = x[ErrParseExpectedWhenClause-261] + _ = x[ErrParseUnsupportedToken-262] + _ = x[ErrParseUnsupportedLiteralsGroupBy-263] + _ = x[ErrParseExpectedMember-264] + _ = x[ErrParseUnsupportedSelect-265] + _ = x[ErrParseUnsupportedCase-266] + _ = x[ErrParseUnsupportedCaseClause-267] + _ = x[ErrParseUnsupportedAlias-268] + _ = x[ErrParseUnsupportedSyntax-269] + _ = x[ErrParseUnknownOperator-270] + _ = x[ErrParseMissingIdentAfterAt-271] + _ = x[ErrParseUnexpectedOperator-272] + _ = x[ErrParseUnexpectedTerm-273] + _ = x[ErrParseUnexpectedToken-274] + _ = x[ErrParseUnexpectedKeyword-275] + _ = x[ErrParseExpectedExpression-276] + _ = x[ErrParseExpectedLeftParenAfterCast-277] + _ = x[ErrParseExpectedLeftParenValueConstructor-278] + _ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-279] + _ = x[ErrParseExpectedArgumentDelimiter-280] + _ = x[ErrParseCastArity-281] + _ = x[ErrParseInvalidTypeParam-282] + _ = x[ErrParseEmptySelect-283] + _ = x[ErrParseSelectMissingFrom-284] + _ = x[ErrParseExpectedIdentForGroupName-285] + _ = x[ErrParseExpectedIdentForAlias-286] + _ = x[ErrParseUnsupportedCallWithStar-287] + _ = x[ErrParseNonUnaryAggregateFunctionCall-288] + _ = x[ErrParseMalformedJoin-289] + _ = x[ErrParseExpectedIdentForAt-290] + _ = x[ErrParseAsteriskIsNotAloneInSelectList-291] + _ = x[ErrParseCannotMixSqbAndWildcardInSelectList-292] + _ = x[ErrParseInvalidContextForWildcardInSelectList-293] + _ = x[ErrIncorrectSQLFunctionArgumentType-294] + _ = x[ErrValueParseFailure-295] + _ = x[ErrEvaluatorInvalidArguments-296] + _ = x[ErrIntegerOverflow-297] + _ = x[ErrLikeInvalidInputs-298] + _ = x[ErrCastFailed-299] + _ = x[ErrInvalidCast-300] + _ = x[ErrEvaluatorInvalidTimestampFormatPattern-301] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-302] + _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-303] + _ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-304] + _ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-305] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-306] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-307] + _ = x[ErrEvaluatorBindingDoesNotExist-308] + _ = x[ErrMissingHeaders-309] + _ = x[ErrInvalidColumnIndex-310] + _ = x[ErrAdminConfigNotificationTargetsFailed-311] + _ = x[ErrAdminProfilerNotEnabled-312] + _ = x[ErrInvalidDecompressedSize-313] + _ = x[ErrAddUserInvalidArgument-314] + _ = x[ErrAddUserValidUTF-315] + _ = x[ErrAdminResourceInvalidArgument-316] + _ = x[ErrAdminAccountNotEligible-317] + _ = x[ErrAccountNotEligible-318] + _ = x[ErrAdminServiceAccountNotFound-319] + _ = x[ErrPostPolicyConditionInvalidFormat-320] + _ = x[ErrInvalidChecksum-321] + _ = x[ErrLambdaARNInvalid-322] + _ = x[ErrLambdaARNNotFound-323] + _ = x[ErrInvalidAttributeName-324] + _ = x[ErrAdminNoAccessKey-325] + _ = x[ErrAdminNoSecretKey-326] + _ = x[ErrIAMNotInitialized-327] + _ = x[apiErrCodeEnd-328] } -const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDAccessKeyDisabledInvalidArgumentInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationInvalidLifecycleWithObjectLockNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationDenyEditErrorRemoteTargetDenyAddErrorReplicationNoExistingObjectsReplicationValidationErrorReplicationPermissionCheckErrorObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderMissingPartAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledPolicyInvalidVersionMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataUnsupportedHostHeaderMaximumExpiresSlowDownReadSlowDownWriteMaxVersionsExceededInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectivePolicyAlreadyAttachedPolicyNotAttachedExcessDataInvalidEncryptionMethodInvalidEncryptionKeyIDInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidEncryptionParametersSSECInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredKMSKeyNotFoundExceptionKMSDefaultKeyAlreadyConfiguredNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchContentChecksumMismatchStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameInvalidLifecycleQueryParameterServerNotInitializedBucketMetadataNotInitializedRequestTimedoutClientDisconnectedTooManyRequestsInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchUserLDAPWarnAdminLDAPExpectedLoginNameAdminNoSuchGroupAdminGroupNotEmptyAdminGroupDisabledAdminInvalidGroupNameAdminNoSuchJobAdminNoSuchPolicyAdminPolicyChangeAlreadyAppliedAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminNoSuchConfigTargetAdminConfigEnvOverriddenAdminConfigDuplicateKeysAdminConfigInvalidIDPTypeAdminConfigLDAPNonDefaultConfigNameAdminConfigLDAPValidationAdminConfigIDPCfgNameAlreadyExistsAdminConfigIDPCfgNameDoesNotExistInsecureClientRequestObjectTamperedAdminLDAPNotEnabledSiteReplicationInvalidRequestSiteReplicationPeerRespSiteReplicationBackendIssueSiteReplicationServiceAccountErrorSiteReplicationBucketConfigErrorSiteReplicationBucketMetaErrorSiteReplicationIAMErrorSiteReplicationConfigMissingSiteReplicationIAMConfigMismatchAdminRebalanceAlreadyStartedAdminRebalanceNotStartedAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeaderLexerInvalidCharLexerInvalidOperatorLexerInvalidLiteralLexerInvalidIONLiteralParseExpectedDatePartParseExpectedKeywordParseExpectedTokenTypeParseExpected2TokenTypesParseExpectedNumberParseExpectedRightParenBuiltinFunctionCallParseExpectedTypeNameParseExpectedWhenClauseParseUnsupportedTokenParseUnsupportedLiteralsGroupByParseExpectedMemberParseUnsupportedSelectParseUnsupportedCaseParseUnsupportedCaseClauseParseUnsupportedAliasParseUnsupportedSyntaxParseUnknownOperatorParseMissingIdentAfterAtParseUnexpectedOperatorParseUnexpectedTermParseUnexpectedTokenParseUnexpectedKeywordParseExpectedExpressionParseExpectedLeftParenAfterCastParseExpectedLeftParenValueConstructorParseExpectedLeftParenBuiltinFunctionCallParseExpectedArgumentDelimiterParseCastArityParseInvalidTypeParamParseEmptySelectParseSelectMissingFromParseExpectedIdentForGroupNameParseExpectedIdentForAliasParseUnsupportedCallWithStarParseNonUnaryAggregateFunctionCallParseMalformedJoinParseExpectedIdentForAtParseAsteriskIsNotAloneInSelectListParseCannotMixSqbAndWildcardInSelectListParseInvalidContextForWildcardInSelectListIncorrectSQLFunctionArgumentTypeValueParseFailureEvaluatorInvalidArgumentsIntegerOverflowLikeInvalidInputsCastFailedInvalidCastEvaluatorInvalidTimestampFormatPatternEvaluatorInvalidTimestampFormatPatternSymbolForParsingEvaluatorTimestampFormatPatternDuplicateFieldsEvaluatorTimestampFormatPatternHourClockAmPmMismatchEvaluatorUnterminatedTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternSymbolEvaluatorBindingDoesNotExistMissingHeadersInvalidColumnIndexAdminConfigNotificationTargetsFailedAdminProfilerNotEnabledInvalidDecompressedSizeAddUserInvalidArgumentAddUserValidUTFAdminResourceInvalidArgumentAdminAccountNotEligibleAccountNotEligibleAdminServiceAccountNotFoundPostPolicyConditionInvalidFormatInvalidChecksumLambdaARNInvalidLambdaARNNotFoundInvalidAttributeNameAdminNoAccessKeyAdminNoSecretKeyIAMNotInitializedapiErrCodeEnd" +const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDAccessKeyDisabledInvalidArgumentInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationInvalidLifecycleWithObjectLockNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationDenyEditErrorRemoteTargetDenyAddErrorReplicationNoExistingObjectsReplicationValidationErrorReplicationPermissionCheckErrorObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderMissingPartAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledPolicyInvalidVersionMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataUnsupportedHostHeaderMaximumExpiresSlowDownReadSlowDownWriteMaxVersionsExceededInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectivePolicyAlreadyAttachedPolicyNotAttachedExcessDataPolicyInvalidNameInvalidEncryptionMethodInvalidEncryptionKeyIDInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidEncryptionParametersSSECInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredKMSKeyNotFoundExceptionKMSDefaultKeyAlreadyConfiguredNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchContentChecksumMismatchStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameInvalidLifecycleQueryParameterServerNotInitializedBucketMetadataNotInitializedRequestTimedoutClientDisconnectedTooManyRequestsInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchUserLDAPWarnAdminLDAPExpectedLoginNameAdminNoSuchGroupAdminGroupNotEmptyAdminGroupDisabledAdminInvalidGroupNameAdminNoSuchJobAdminNoSuchPolicyAdminPolicyChangeAlreadyAppliedAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminNoSuchConfigTargetAdminConfigEnvOverriddenAdminConfigDuplicateKeysAdminConfigInvalidIDPTypeAdminConfigLDAPNonDefaultConfigNameAdminConfigLDAPValidationAdminConfigIDPCfgNameAlreadyExistsAdminConfigIDPCfgNameDoesNotExistInsecureClientRequestObjectTamperedAdminLDAPNotEnabledSiteReplicationInvalidRequestSiteReplicationPeerRespSiteReplicationBackendIssueSiteReplicationServiceAccountErrorSiteReplicationBucketConfigErrorSiteReplicationBucketMetaErrorSiteReplicationIAMErrorSiteReplicationConfigMissingSiteReplicationIAMConfigMismatchAdminRebalanceAlreadyStartedAdminRebalanceNotStartedAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeaderLexerInvalidCharLexerInvalidOperatorLexerInvalidLiteralLexerInvalidIONLiteralParseExpectedDatePartParseExpectedKeywordParseExpectedTokenTypeParseExpected2TokenTypesParseExpectedNumberParseExpectedRightParenBuiltinFunctionCallParseExpectedTypeNameParseExpectedWhenClauseParseUnsupportedTokenParseUnsupportedLiteralsGroupByParseExpectedMemberParseUnsupportedSelectParseUnsupportedCaseParseUnsupportedCaseClauseParseUnsupportedAliasParseUnsupportedSyntaxParseUnknownOperatorParseMissingIdentAfterAtParseUnexpectedOperatorParseUnexpectedTermParseUnexpectedTokenParseUnexpectedKeywordParseExpectedExpressionParseExpectedLeftParenAfterCastParseExpectedLeftParenValueConstructorParseExpectedLeftParenBuiltinFunctionCallParseExpectedArgumentDelimiterParseCastArityParseInvalidTypeParamParseEmptySelectParseSelectMissingFromParseExpectedIdentForGroupNameParseExpectedIdentForAliasParseUnsupportedCallWithStarParseNonUnaryAggregateFunctionCallParseMalformedJoinParseExpectedIdentForAtParseAsteriskIsNotAloneInSelectListParseCannotMixSqbAndWildcardInSelectListParseInvalidContextForWildcardInSelectListIncorrectSQLFunctionArgumentTypeValueParseFailureEvaluatorInvalidArgumentsIntegerOverflowLikeInvalidInputsCastFailedInvalidCastEvaluatorInvalidTimestampFormatPatternEvaluatorInvalidTimestampFormatPatternSymbolForParsingEvaluatorTimestampFormatPatternDuplicateFieldsEvaluatorTimestampFormatPatternHourClockAmPmMismatchEvaluatorUnterminatedTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternSymbolEvaluatorBindingDoesNotExistMissingHeadersInvalidColumnIndexAdminConfigNotificationTargetsFailedAdminProfilerNotEnabledInvalidDecompressedSizeAddUserInvalidArgumentAddUserValidUTFAdminResourceInvalidArgumentAdminAccountNotEligibleAccountNotEligibleAdminServiceAccountNotFoundPostPolicyConditionInvalidFormatInvalidChecksumLambdaARNInvalidLambdaARNNotFoundInvalidAttributeNameAdminNoAccessKeyAdminNoSecretKeyIAMNotInitializedapiErrCodeEnd" -var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 144, 161, 174, 186, 208, 228, 254, 268, 289, 306, 321, 344, 361, 379, 396, 420, 435, 456, 474, 486, 506, 523, 546, 567, 579, 597, 618, 646, 676, 697, 720, 746, 783, 813, 846, 871, 903, 933, 962, 987, 1009, 1035, 1057, 1085, 1114, 1148, 1179, 1216, 1240, 1264, 1292, 1318, 1349, 1379, 1388, 1400, 1416, 1429, 1443, 1461, 1481, 1502, 1518, 1529, 1545, 1556, 1584, 1604, 1620, 1648, 1662, 1679, 1699, 1712, 1726, 1739, 1752, 1768, 1785, 1806, 1820, 1841, 1854, 1876, 1899, 1915, 1930, 1945, 1966, 1984, 1999, 2016, 2041, 2059, 2082, 2097, 2116, 2132, 2151, 2172, 2186, 2198, 2211, 2230, 2249, 2259, 2274, 2310, 2341, 2374, 2403, 2415, 2435, 2459, 2483, 2504, 2528, 2547, 2568, 2585, 2595, 2618, 2640, 2666, 2687, 2705, 2732, 2763, 2790, 2811, 2832, 2856, 2881, 2909, 2937, 2953, 2976, 3006, 3017, 3029, 3046, 3061, 3079, 3108, 3125, 3141, 3157, 3175, 3193, 3216, 3237, 3260, 3271, 3287, 3310, 3327, 3355, 3374, 3404, 3424, 3452, 3467, 3485, 3500, 3514, 3549, 3568, 3579, 3592, 3607, 3630, 3656, 3672, 3690, 3708, 3729, 3743, 3760, 3791, 3811, 3832, 3853, 3872, 3891, 3909, 3932, 3956, 3980, 4005, 4040, 4065, 4099, 4132, 4153, 4167, 4186, 4215, 4238, 4265, 4299, 4331, 4361, 4384, 4412, 4444, 4472, 4496, 4520, 4549, 4567, 4584, 4606, 4623, 4641, 4661, 4687, 4703, 4722, 4743, 4747, 4765, 4782, 4808, 4822, 4846, 4867, 4882, 4900, 4923, 4938, 4957, 4974, 4991, 5015, 5042, 5065, 5088, 5105, 5127, 5143, 5163, 5182, 5204, 5225, 5245, 5267, 5291, 5310, 5352, 5373, 5396, 5417, 5448, 5467, 5489, 5509, 5535, 5556, 5578, 5598, 5622, 5645, 5664, 5684, 5706, 5729, 5760, 5798, 5839, 5869, 5883, 5904, 5920, 5942, 5972, 5998, 6026, 6060, 6078, 6101, 6136, 6176, 6218, 6250, 6267, 6292, 6307, 6324, 6334, 6345, 6383, 6437, 6483, 6535, 6583, 6626, 6670, 6698, 6712, 6730, 6766, 6789, 6812, 6834, 6849, 6877, 6900, 6918, 6945, 6977, 6992, 7008, 7025, 7045, 7061, 7077, 7094, 7107} +var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 144, 161, 174, 186, 208, 228, 254, 268, 289, 306, 321, 344, 361, 379, 396, 420, 435, 456, 474, 486, 506, 523, 546, 567, 579, 597, 618, 646, 676, 697, 720, 746, 783, 813, 846, 871, 903, 933, 962, 987, 1009, 1035, 1057, 1085, 1114, 1148, 1179, 1216, 1240, 1264, 1292, 1318, 1349, 1379, 1388, 1400, 1416, 1429, 1443, 1461, 1481, 1502, 1518, 1529, 1545, 1556, 1584, 1604, 1620, 1648, 1662, 1679, 1699, 1712, 1726, 1739, 1752, 1768, 1785, 1806, 1820, 1841, 1854, 1876, 1899, 1915, 1930, 1945, 1966, 1984, 1999, 2016, 2041, 2059, 2082, 2097, 2116, 2132, 2151, 2172, 2186, 2198, 2211, 2230, 2249, 2259, 2274, 2310, 2341, 2374, 2403, 2415, 2435, 2459, 2483, 2504, 2528, 2547, 2568, 2585, 2595, 2612, 2635, 2657, 2683, 2704, 2722, 2749, 2780, 2807, 2828, 2849, 2873, 2898, 2926, 2954, 2970, 2993, 3023, 3034, 3046, 3063, 3078, 3096, 3125, 3142, 3158, 3174, 3192, 3210, 3233, 3254, 3277, 3288, 3304, 3327, 3344, 3372, 3391, 3421, 3441, 3469, 3484, 3502, 3517, 3531, 3566, 3585, 3596, 3609, 3624, 3647, 3673, 3689, 3707, 3725, 3746, 3760, 3777, 3808, 3828, 3849, 3870, 3889, 3908, 3926, 3949, 3973, 3997, 4022, 4057, 4082, 4116, 4149, 4170, 4184, 4203, 4232, 4255, 4282, 4316, 4348, 4378, 4401, 4429, 4461, 4489, 4513, 4537, 4566, 4584, 4601, 4623, 4640, 4658, 4678, 4704, 4720, 4739, 4760, 4764, 4782, 4799, 4825, 4839, 4863, 4884, 4899, 4917, 4940, 4955, 4974, 4991, 5008, 5032, 5059, 5082, 5105, 5122, 5144, 5160, 5180, 5199, 5221, 5242, 5262, 5284, 5308, 5327, 5369, 5390, 5413, 5434, 5465, 5484, 5506, 5526, 5552, 5573, 5595, 5615, 5639, 5662, 5681, 5701, 5723, 5746, 5777, 5815, 5856, 5886, 5900, 5921, 5937, 5959, 5989, 6015, 6043, 6077, 6095, 6118, 6153, 6193, 6235, 6267, 6284, 6309, 6324, 6341, 6351, 6362, 6400, 6454, 6500, 6552, 6600, 6643, 6687, 6715, 6729, 6747, 6783, 6806, 6829, 6851, 6866, 6894, 6917, 6935, 6962, 6994, 7009, 7025, 7042, 7062, 7078, 7094, 7111, 7124} func (i APIErrorCode) String() string { if i < 0 || i >= APIErrorCode(len(_APIErrorCode_index)-1) {