s3s/error/
generated.rs

1//! Auto generated by `s3s_codegen::v1::error::codegen`
2
3#![allow(clippy::doc_markdown)]
4#![allow(clippy::too_many_lines)]
5
6use bytestring::ByteString;
7use hyper::StatusCode;
8
9// AccessControlListNotSupported
10// AccessDenied
11// AccessPointAlreadyOwnedByYou
12// AccountProblem
13// AllAccessDisabled
14// AmbiguousFieldName
15// AmbiguousGrantByEmailAddress
16// AuthorizationHeaderMalformed
17// AuthorizationQueryParametersError
18// BadDigest
19// BucketAlreadyExists
20// BucketAlreadyOwnedByYou
21// BucketHasAccessPointsAttached
22// BucketNotEmpty
23// Busy
24// CSVEscapingRecordDelimiter
25// CSVParsingError
26// CSVUnescapedQuote
27// CastFailed
28// ClientTokenConflict
29// ColumnTooLong
30// ConditionalRequestConflict
31// ConnectionClosedByRequester
32// CredentialsNotSupported
33// CrossLocationLoggingProhibited
34// DeviceNotActiveError
35// EmptyRequestBody
36// EndpointNotFound
37// EntityTooLarge
38// EntityTooSmall
39// EvaluatorBindingDoesNotExist
40// EvaluatorInvalidArguments
41// EvaluatorInvalidTimestampFormatPattern
42// EvaluatorInvalidTimestampFormatPatternSymbol
43// EvaluatorInvalidTimestampFormatPatternSymbolForParsing
44// EvaluatorInvalidTimestampFormatPatternToken
45// EvaluatorLikePatternInvalidEscapeSequence
46// EvaluatorNegativeLimit
47// EvaluatorTimestampFormatPatternDuplicateFields
48// EvaluatorTimestampFormatPatternHourClockAmPmMismatch
49// EvaluatorUnterminatedTimestampFormatPatternToken
50// ExpiredToken
51// ExpressionTooLong
52// ExternalEvalException
53// IllegalLocationConstraintException
54// IllegalSqlFunctionArgument
55// IllegalVersioningConfigurationException
56// IncompleteBody
57// IncorrectEndpoint
58// IncorrectNumberOfFilesInPostRequest
59// IncorrectSqlFunctionArgumentType
60// InlineDataTooLarge
61// IntegerOverflow
62// InternalError
63// InvalidAccessKeyId
64// InvalidAccessPoint
65// InvalidAccessPointAliasError
66// InvalidAddressingHeader
67// InvalidArgument
68// InvalidBucketAclWithObjectOwnership
69// InvalidBucketName
70// InvalidBucketOwnerAWSAccountID
71// InvalidBucketState
72// InvalidCast
73// InvalidColumnIndex
74// InvalidCompressionFormat
75// InvalidDataSource
76// InvalidDataType
77// InvalidDigest
78// InvalidEncryptionAlgorithmError
79// InvalidExpressionType
80// InvalidFileHeaderInfo
81// InvalidHostHeader
82// InvalidHttpMethod
83// InvalidJsonType
84// InvalidKeyPath
85// InvalidLocationConstraint
86// InvalidObjectState
87// InvalidPart
88// InvalidPartOrder
89// InvalidPayer
90// InvalidPolicyDocument
91// InvalidQuoteFields
92// InvalidRange
93// InvalidRequest
94// InvalidRequestParameter
95// InvalidSOAPRequest
96// InvalidScanRange
97// InvalidSecurity
98// InvalidSessionException
99// InvalidSignature
100// InvalidStorageClass
101// InvalidTableAlias
102// InvalidTag
103// InvalidTargetBucketForLogging
104// InvalidTextEncoding
105// InvalidToken
106// InvalidURI
107// JSONParsingError
108// KeyTooLongError
109// LexerInvalidChar
110// LexerInvalidIONLiteral
111// LexerInvalidLiteral
112// LexerInvalidOperator
113// LikeInvalidInputs
114// MalformedACLError
115// MalformedPOSTRequest
116// MalformedPolicy
117// MalformedXML
118// MaxMessageLengthExceeded
119// MaxOperatorsExceeded
120// MaxPostPreDataLengthExceededError
121// MetadataTooLarge
122// MethodNotAllowed
123// MissingAttachment
124// MissingAuthenticationToken
125// MissingContentLength
126// MissingRequestBodyError
127// MissingRequiredParameter
128// MissingSecurityElement
129// MissingSecurityHeader
130// MultipleDataSourcesUnsupported
131// NoLoggingStatusForKey
132// NoSuchAccessPoint
133// NoSuchAsyncRequest
134// NoSuchBucket
135// NoSuchBucketPolicy
136// NoSuchCORSConfiguration
137// NoSuchKey
138// NoSuchLifecycleConfiguration
139// NoSuchMultiRegionAccessPoint
140// NoSuchObjectLockConfiguration
141// NoSuchResource
142// NoSuchTagSet
143// NoSuchUpload
144// NoSuchVersion
145// NoSuchWebsiteConfiguration
146// NoTransformationDefined
147// NotDeviceOwnerError
148// NotImplemented
149// NotModified
150// NotSignedUp
151// NumberFormatError
152// ObjectLockConfigurationNotFoundError
153// ObjectSerializationConflict
154// OperationAborted
155// OverMaxColumn
156// OverMaxParquetBlockSize
157// OverMaxRecordSize
158// OwnershipControlsNotFoundError
159// ParquetParsingError
160// ParquetUnsupportedCompressionCodec
161// ParseAsteriskIsNotAloneInSelectList
162// ParseCannotMixSqbAndWildcardInSelectList
163// ParseCastArity
164// ParseEmptySelect
165// ParseExpected2TokenTypes
166// ParseExpectedArgumentDelimiter
167// ParseExpectedDatePart
168// ParseExpectedExpression
169// ParseExpectedIdentForAlias
170// ParseExpectedIdentForAt
171// ParseExpectedIdentForGroupName
172// ParseExpectedKeyword
173// ParseExpectedLeftParenAfterCast
174// ParseExpectedLeftParenBuiltinFunctionCall
175// ParseExpectedLeftParenValueConstructor
176// ParseExpectedMember
177// ParseExpectedNumber
178// ParseExpectedRightParenBuiltinFunctionCall
179// ParseExpectedTokenType
180// ParseExpectedTypeName
181// ParseExpectedWhenClause
182// ParseInvalidContextForWildcardInSelectList
183// ParseInvalidPathComponent
184// ParseInvalidTypeParam
185// ParseMalformedJoin
186// ParseMissingIdentAfterAt
187// ParseNonUnaryAgregateFunctionCall
188// ParseSelectMissingFrom
189// ParseUnExpectedKeyword
190// ParseUnexpectedOperator
191// ParseUnexpectedTerm
192// ParseUnexpectedToken
193// ParseUnknownOperator
194// ParseUnsupportedAlias
195// ParseUnsupportedCallWithStar
196// ParseUnsupportedCase
197// ParseUnsupportedCaseClause
198// ParseUnsupportedLiteralsGroupBy
199// ParseUnsupportedSelect
200// ParseUnsupportedSyntax
201// ParseUnsupportedToken
202// PermanentRedirect
203// PermanentRedirectControlError
204// PreconditionFailed
205// Redirect
206// ReplicationConfigurationNotFoundError
207// RequestHeaderSectionTooLarge
208// RequestIsNotMultiPartContent
209// RequestTimeTooSkewed
210// RequestTimeout
211// RequestTorrentOfBucketError
212// ResponseInterrupted
213// RestoreAlreadyInProgress
214// ServerSideEncryptionConfigurationNotFoundError
215// ServiceUnavailable
216// SignatureDoesNotMatch
217// SlowDown
218// TemporaryRedirect
219// TokenCodeInvalidError
220// TokenRefreshRequired
221// TooManyAccessPoints
222// TooManyBuckets
223// TooManyMultiRegionAccessPointregionsError
224// TooManyMultiRegionAccessPoints
225// TooManyTags
226// TruncatedInput
227// UnauthorizedAccess
228// UnauthorizedAccessError
229// UnexpectedContent
230// UnexpectedIPError
231// UnrecognizedFormatException
232// UnresolvableGrantByEmailAddress
233// UnsupportedArgument
234// UnsupportedFunction
235// UnsupportedParquetType
236// UnsupportedRangeHeader
237// UnsupportedScanRangeInput
238// UnsupportedSignature
239// UnsupportedSqlOperation
240// UnsupportedSqlStructure
241// UnsupportedStorageClass
242// UnsupportedSyntax
243// UnsupportedTypeForQuerying
244// UserKeyMustBeSpecified
245// ValueParseFailure
246
247#[derive(Debug, Clone, PartialEq, Eq)]
248#[non_exhaustive]
249pub enum S3ErrorCode {
250    /// The bucket does not allow ACLs.
251    ///
252    /// HTTP Status Code: 400 Bad Request
253    ///
254    AccessControlListNotSupported,
255
256    /// Access Denied
257    ///
258    /// HTTP Status Code: 403 Forbidden
259    ///
260    AccessDenied,
261
262    /// An access point with an identical name already exists in your account.
263    ///
264    /// HTTP Status Code: 409 Conflict
265    ///
266    AccessPointAlreadyOwnedByYou,
267
268    /// There is a problem with your Amazon Web Services account that prevents the action from completing successfully. Contact Amazon Web Services Support for further assistance.
269    ///
270    /// HTTP Status Code: 403 Forbidden
271    ///
272    AccountProblem,
273
274    /// All access to this Amazon S3 resource has been disabled. Contact Amazon Web Services Support for further assistance.
275    ///
276    /// HTTP Status Code: 403 Forbidden
277    ///
278    AllAccessDisabled,
279
280    /// The field name matches to multiple fields in the file. Check the SQL expression and the file, and try again.
281    ///
282    /// HTTP Status Code: 400 Bad Request
283    ///
284    AmbiguousFieldName,
285
286    /// The email address you provided is associated with more than one account.
287    ///
288    /// HTTP Status Code: 400 Bad Request
289    ///
290    AmbiguousGrantByEmailAddress,
291
292    /// The authorization header you provided is invalid.
293    ///
294    /// HTTP Status Code: 400 Bad Request
295    ///
296    AuthorizationHeaderMalformed,
297
298    /// The authorization query parameters that you provided are not valid.
299    ///
300    /// HTTP Status Code: 400 Bad Request
301    ///
302    AuthorizationQueryParametersError,
303
304    /// The Content-MD5 you specified did not match what we received.
305    ///
306    /// HTTP Status Code: 400 Bad Request
307    ///
308    BadDigest,
309
310    /// The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
311    ///
312    /// HTTP Status Code: 409 Conflict
313    ///
314    BucketAlreadyExists,
315
316    /// The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all Amazon Web Services Regions except in the North Virginia Region. For legacy compatibility, if you re-create an existing bucket that you already own in the North Virginia Region, Amazon S3 returns 200 OK and resets the bucket access control lists (ACLs).
317    ///
318    /// HTTP Status Code: 409 Conflict
319    ///
320    BucketAlreadyOwnedByYou,
321
322    /// The bucket you tried to delete has access points attached. Delete your access points before deleting your bucket.
323    ///
324    /// HTTP Status Code: 400 Bad Request
325    ///
326    BucketHasAccessPointsAttached,
327
328    /// The bucket you tried to delete is not empty.
329    ///
330    /// HTTP Status Code: 409 Conflict
331    ///
332    BucketNotEmpty,
333
334    /// The service is unavailable. Try again later.
335    ///
336    /// HTTP Status Code: 503 Service Unavailable
337    ///
338    Busy,
339
340    /// A quoted record delimiter was found in the file. To allow quoted record delimiters, set AllowQuotedRecordDelimiter to 'TRUE'.
341    ///
342    /// HTTP Status Code: 400 Bad Request
343    ///
344    CSVEscapingRecordDelimiter,
345
346    /// An error occurred while parsing the CSV file. Check the file and try again.
347    ///
348    /// HTTP Status Code: 400 Bad Request
349    ///
350    CSVParsingError,
351
352    /// An unescaped quote was found while parsing the CSV file. To allow quoted record delimiters, set AllowQuotedRecordDelimiter to 'TRUE'.
353    ///
354    /// HTTP Status Code: 400 Bad Request
355    ///
356    CSVUnescapedQuote,
357
358    /// An attempt to convert from one data type to another using CAST failed in the SQL expression.
359    ///
360    /// HTTP Status Code: 400 Bad Request
361    ///
362    CastFailed,
363
364    /// Your Multi-Region Access Point idempotency token was already used for a different request.
365    ///
366    /// HTTP Status Code: 409 Conflict
367    ///
368    ClientTokenConflict,
369
370    /// The length of a column in the result is greater than maxCharsPerColumn of 1 MB.
371    ///
372    /// HTTP Status Code: 400 Bad Request
373    ///
374    ColumnTooLong,
375
376    /// A conflicting operation occurred. If using PutObject you can retry the request. If using multipart upload you should initiate another CreateMultipartUpload request and re-upload each part.
377    ///
378    /// HTTP Status Code: 409 Conflict
379    ///
380    ConditionalRequestConflict,
381
382    /// Returned to the original caller when an error is encountered while reading the WriteGetObjectResponse body.
383    ///
384    /// HTTP Status Code: 400 Bad Request
385    ///
386    ConnectionClosedByRequester,
387
388    /// This request does not support credentials.
389    ///
390    /// HTTP Status Code: 400 Bad Request
391    ///
392    CredentialsNotSupported,
393
394    /// Cross-location logging not allowed. Buckets in one geographic location cannot log information to a bucket in another location.
395    ///
396    /// HTTP Status Code: 403 Forbidden
397    ///
398    CrossLocationLoggingProhibited,
399
400    /// The device is not currently active.
401    ///
402    /// HTTP Status Code: 400 Bad Request
403    ///
404    DeviceNotActiveError,
405
406    /// The request body cannot be empty.
407    ///
408    /// HTTP Status Code: 400 Bad Request
409    ///
410    EmptyRequestBody,
411
412    /// Direct requests to the correct endpoint.
413    ///
414    /// HTTP Status Code: 400 Bad Request
415    ///
416    EndpointNotFound,
417
418    /// Your proposed upload exceeds the maximum allowed object size.
419    ///
420    /// HTTP Status Code: 400 Bad Request
421    ///
422    EntityTooLarge,
423
424    /// Your proposed upload is smaller than the minimum allowed object size.
425    ///
426    /// HTTP Status Code: 400 Bad Request
427    ///
428    EntityTooSmall,
429
430    /// A column name or a path provided does not exist in the SQL expression.
431    ///
432    /// HTTP Status Code: 400 Bad Request
433    ///
434    EvaluatorBindingDoesNotExist,
435
436    /// There is an incorrect number of arguments in the function call in the SQL expression.
437    ///
438    /// HTTP Status Code: 400 Bad Request
439    ///
440    EvaluatorInvalidArguments,
441
442    /// The timestamp format string in the SQL expression is not valid.
443    ///
444    /// HTTP Status Code: 400 Bad Request
445    ///
446    EvaluatorInvalidTimestampFormatPattern,
447
448    /// The timestamp format pattern contains a symbol in the SQL expression that is not valid.
449    ///
450    /// HTTP Status Code: 400 Bad Request
451    ///
452    EvaluatorInvalidTimestampFormatPatternSymbol,
453
454    /// The timestamp format pattern contains a valid format symbol that cannot be applied to timestamp parsing in the SQL expression.
455    ///
456    /// HTTP Status Code: 400 Bad Request
457    ///
458    EvaluatorInvalidTimestampFormatPatternSymbolForParsing,
459
460    /// The timestamp format pattern contains a token in the SQL expression that is not valid.
461    ///
462    /// HTTP Status Code: 400 Bad Request
463    ///
464    EvaluatorInvalidTimestampFormatPatternToken,
465
466    /// An argument given to the LIKE expression was not valid.
467    ///
468    /// HTTP Status Code: 400 Bad Request
469    ///
470    EvaluatorLikePatternInvalidEscapeSequence,
471
472    /// LIMIT must not be negative.
473    ///
474    /// HTTP Status Code: 400 Bad Request
475    ///
476    EvaluatorNegativeLimit,
477
478    /// The timestamp format pattern contains multiple format specifiers representing the timestamp field in the SQL expression.
479    ///
480    /// HTTP Status Code: 400 Bad Request
481    ///
482    EvaluatorTimestampFormatPatternDuplicateFields,
483
484    /// The timestamp format pattern contains a 12-hour hour of day format symbol but doesn't also contain an AM/PM field, or it contains a 24-hour hour of day format specifier and contains an AM/PM field in the SQL expression.
485    ///
486    /// HTTP Status Code: 400 Bad Request
487    ///
488    EvaluatorTimestampFormatPatternHourClockAmPmMismatch,
489
490    /// The timestamp format pattern contains an unterminated token in the SQL expression.
491    ///
492    /// HTTP Status Code: 400 Bad Request
493    ///
494    EvaluatorUnterminatedTimestampFormatPatternToken,
495
496    /// The provided token has expired.
497    ///
498    /// HTTP Status Code: 400 Bad Request
499    ///
500    ExpiredToken,
501
502    /// The SQL expression is too long. The maximum byte-length for an SQL expression is 256 KB.
503    ///
504    /// HTTP Status Code: 400 Bad Request
505    ///
506    ExpressionTooLong,
507
508    /// The query cannot be evaluated. Check the file and try again.
509    ///
510    /// HTTP Status Code: 400 Bad Request
511    ///
512    ExternalEvalException,
513
514    /// This error might occur for the following reasons:
515    ///
516    ///
517    /// You are trying to access a bucket from a different Region than where the bucket exists.
518    ///
519    /// You attempt to create a bucket with a location constraint that corresponds to a different region than the regional endpoint the request was sent to.
520    ///
521    /// HTTP Status Code: 400 Bad Request
522    ///
523    IllegalLocationConstraintException,
524
525    /// An illegal argument was used in the SQL function.
526    ///
527    /// HTTP Status Code: 400 Bad Request
528    ///
529    IllegalSqlFunctionArgument,
530
531    /// Indicates that the versioning configuration specified in the request is invalid.
532    ///
533    /// HTTP Status Code: 400 Bad Request
534    ///
535    IllegalVersioningConfigurationException,
536
537    /// You did not provide the number of bytes specified by the Content-Length HTTP header
538    ///
539    /// HTTP Status Code: 400 Bad Request
540    ///
541    IncompleteBody,
542
543    /// The specified bucket exists in another Region. Direct requests to the correct endpoint.
544    ///
545    /// HTTP Status Code: 400 Bad Request
546    ///
547    IncorrectEndpoint,
548
549    /// POST requires exactly one file upload per request.
550    ///
551    /// HTTP Status Code: 400 Bad Request
552    ///
553    IncorrectNumberOfFilesInPostRequest,
554
555    /// An incorrect argument type was specified in a function call in the SQL expression.
556    ///
557    /// HTTP Status Code: 400 Bad Request
558    ///
559    IncorrectSqlFunctionArgumentType,
560
561    /// Inline data exceeds the maximum allowed size.
562    ///
563    /// HTTP Status Code: 400 Bad Request
564    ///
565    InlineDataTooLarge,
566
567    /// An integer overflow or underflow occurred in the SQL expression.
568    ///
569    /// HTTP Status Code: 400 Bad Request
570    ///
571    IntegerOverflow,
572
573    /// We encountered an internal error. Please try again.
574    ///
575    /// HTTP Status Code: 500 Internal Server Error
576    ///
577    InternalError,
578
579    /// The Amazon Web Services access key ID you provided does not exist in our records.
580    ///
581    /// HTTP Status Code: 403 Forbidden
582    ///
583    InvalidAccessKeyId,
584
585    /// The specified access point name or account is not valid.
586    ///
587    /// HTTP Status Code: 400 Bad Request
588    ///
589    InvalidAccessPoint,
590
591    /// The specified access point alias name is not valid.
592    ///
593    /// HTTP Status Code: 400 Bad Request
594    ///
595    InvalidAccessPointAliasError,
596
597    /// You must specify the Anonymous role.
598    ///
599    InvalidAddressingHeader,
600
601    /// Invalid Argument
602    ///
603    /// HTTP Status Code: 400 Bad Request
604    ///
605    InvalidArgument,
606
607    /// Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting.
608    ///
609    /// HTTP Status Code: 400 Bad Request
610    ///
611    InvalidBucketAclWithObjectOwnership,
612
613    /// The specified bucket is not valid.
614    ///
615    /// HTTP Status Code: 400 Bad Request
616    ///
617    InvalidBucketName,
618
619    /// The value of the expected bucket owner parameter must be an AWS account ID.
620    ///
621    /// HTTP Status Code: 400 Bad Request
622    ///
623    InvalidBucketOwnerAWSAccountID,
624
625    /// The request is not valid with the current state of the bucket.
626    ///
627    /// HTTP Status Code: 409 Conflict
628    ///
629    InvalidBucketState,
630
631    /// An attempt to convert from one data type to another using CAST failed in the SQL expression.
632    ///
633    /// HTTP Status Code: 400 Bad Request
634    ///
635    InvalidCast,
636
637    /// The column index in the SQL expression is not valid.
638    ///
639    /// HTTP Status Code: 400 Bad Request
640    ///
641    InvalidColumnIndex,
642
643    /// The file is not in a supported compression format. Only GZIP and BZIP2 are supported.
644    ///
645    /// HTTP Status Code: 400 Bad Request
646    ///
647    InvalidCompressionFormat,
648
649    /// The data source type is not valid. Only CSV, JSON, and Parquet are supported.
650    ///
651    /// HTTP Status Code: 400 Bad Request
652    ///
653    InvalidDataSource,
654
655    /// The SQL expression contains a data type that is not valid.
656    ///
657    /// HTTP Status Code: 400 Bad Request
658    ///
659    InvalidDataType,
660
661    /// The Content-MD5 you specified is not valid.
662    ///
663    /// HTTP Status Code: 400 Bad Request
664    ///
665    InvalidDigest,
666
667    /// The encryption request you specified is not valid. The valid value is AES256.
668    ///
669    /// HTTP Status Code: 400 Bad Request
670    ///
671    InvalidEncryptionAlgorithmError,
672
673    /// The ExpressionType value is not valid. Only SQL expressions are supported.
674    ///
675    /// HTTP Status Code: 400 Bad Request
676    ///
677    InvalidExpressionType,
678
679    /// The FileHeaderInfo value is not valid. Only NONE, USE, and IGNORE are supported.
680    ///
681    /// HTTP Status Code: 400 Bad Request
682    ///
683    InvalidFileHeaderInfo,
684
685    /// The host headers provided in the request used the incorrect style addressing.
686    ///
687    /// HTTP Status Code: 400 Bad Request
688    ///
689    InvalidHostHeader,
690
691    /// The request is made using an unexpected HTTP method.
692    ///
693    /// HTTP Status Code: 400 Bad Request
694    ///
695    InvalidHttpMethod,
696
697    /// The JsonType value is not valid. Only DOCUMENT and LINES are supported.
698    ///
699    /// HTTP Status Code: 400 Bad Request
700    ///
701    InvalidJsonType,
702
703    /// The key path in the SQL expression is not valid.
704    ///
705    /// HTTP Status Code: 400 Bad Request
706    ///
707    InvalidKeyPath,
708
709    /// The specified location constraint is not valid. For more information about Regions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro">How to Select a Region for Your Buckets</a>.
710    ///
711    /// HTTP Status Code: 400 Bad Request
712    ///
713    InvalidLocationConstraint,
714
715    /// The action is not valid for the current state of the object.
716    ///
717    /// HTTP Status Code: 403 Forbidden
718    ///
719    InvalidObjectState,
720
721    /// One or more of the specified parts could not be found. The part might not have been uploaded, or the specified entity tag might not have matched the part's entity tag.
722    ///
723    /// HTTP Status Code: 400 Bad Request
724    ///
725    InvalidPart,
726
727    /// The list of parts was not in ascending order. Parts list must be specified in order by part number.
728    ///
729    /// HTTP Status Code: 400 Bad Request
730    ///
731    InvalidPartOrder,
732
733    /// All access to this object has been disabled. Please contact Amazon Web Services Support for further assistance.
734    ///
735    /// HTTP Status Code: 403 Forbidden
736    ///
737    InvalidPayer,
738
739    /// The content of the form does not meet the conditions specified in the policy document.
740    ///
741    /// HTTP Status Code: 400 Bad Request
742    ///
743    InvalidPolicyDocument,
744
745    /// The QuoteFields value is not valid. Only ALWAYS and ASNEEDED are supported.
746    ///
747    /// HTTP Status Code: 400 Bad Request
748    ///
749    InvalidQuoteFields,
750
751    /// The requested range cannot be satisfied.
752    ///
753    /// HTTP Status Code: 416 Requested Range NotSatisfiable
754    ///
755    InvalidRange,
756
757    /// + Please use <code>AWS4-HMAC-SHA256</code>.
758    /// + SOAP requests must be made over an HTTPS connection.
759    /// + Amazon S3 Transfer Acceleration is not supported for buckets with non-DNS compliant names.
760    /// + Amazon S3 Transfer Acceleration is not supported for buckets with periods (.) in their names.
761    /// + Amazon S3 Transfer Accelerate endpoint only supports virtual style requests.
762    /// + Amazon S3 Transfer Accelerate is not configured on this bucket.
763    /// + Amazon S3 Transfer Accelerate is disabled on this bucket.
764    /// + Amazon S3 Transfer Acceleration is not supported on this bucket. Contact Amazon Web Services Support for more information.
765    /// + Amazon S3 Transfer Acceleration cannot be enabled on this bucket. Contact Amazon Web Services Support for more information.
766    ///
767    /// HTTP Status Code: 400 Bad Request
768    InvalidRequest,
769
770    /// The value of a parameter in the SelectRequest element is not valid. Check the service API documentation and try again.
771    ///
772    /// HTTP Status Code: 400 Bad Request
773    ///
774    InvalidRequestParameter,
775
776    /// The SOAP request body is invalid.
777    ///
778    /// HTTP Status Code: 400 Bad Request
779    ///
780    InvalidSOAPRequest,
781
782    /// The provided scan range is not valid.
783    ///
784    /// HTTP Status Code: 400 Bad Request
785    ///
786    InvalidScanRange,
787
788    /// The provided security credentials are not valid.
789    ///
790    /// HTTP Status Code: 403 Forbidden
791    ///
792    InvalidSecurity,
793
794    /// Returned if the session doesn't exist anymore because it timed out or expired.
795    ///
796    /// HTTP Status Code: 400 Bad Request
797    ///
798    InvalidSessionException,
799
800    /// The request signature that the server calculated does not match the signature that you provided. Check your AWS secret access key and signing method. For more information, see Signing and authenticating REST requests.
801    ///
802    /// HTTP Status Code: 400 Bad Request
803    ///
804    InvalidSignature,
805
806    /// The storage class you specified is not valid.
807    ///
808    /// HTTP Status Code: 400 Bad Request
809    ///
810    InvalidStorageClass,
811
812    /// The SQL expression contains a table alias that is not valid.
813    ///
814    /// HTTP Status Code: 400 Bad Request
815    ///
816    InvalidTableAlias,
817
818    /// Your request contains tag input that is not valid. For example, your request might contain duplicate keys, keys or values that are too long, or system tags.
819    ///
820    /// HTTP Status Code: 400 Bad Request
821    ///
822    InvalidTag,
823
824    /// The target bucket for logging does not exist, is not owned by you, or does not have the appropriate grants for the log-delivery group.
825    ///
826    /// HTTP Status Code: 400 Bad Request
827    ///
828    InvalidTargetBucketForLogging,
829
830    /// The encoding type is not valid. Only UTF-8 encoding is supported.
831    ///
832    /// HTTP Status Code: 400 Bad Request
833    ///
834    InvalidTextEncoding,
835
836    /// The provided token is malformed or otherwise invalid.
837    ///
838    /// HTTP Status Code: 400 Bad Request
839    ///
840    InvalidToken,
841
842    /// Couldn't parse the specified URI.
843    ///
844    /// HTTP Status Code: 400 Bad Request
845    ///
846    InvalidURI,
847
848    /// An error occurred while parsing the JSON file. Check the file and try again.
849    ///
850    /// HTTP Status Code: 400 Bad Request
851    ///
852    JSONParsingError,
853
854    /// Your key is too long.
855    ///
856    /// HTTP Status Code: 400 Bad Request
857    ///
858    KeyTooLongError,
859
860    /// The SQL expression contains a character that is not valid.
861    ///
862    /// HTTP Status Code: 400 Bad Request
863    ///
864    LexerInvalidChar,
865
866    /// The SQL expression contains an operator that is not valid.
867    ///
868    /// HTTP Status Code: 400 Bad Request
869    ///
870    LexerInvalidIONLiteral,
871
872    /// The SQL expression contains an operator that is not valid.
873    ///
874    /// HTTP Status Code: 400 Bad Request
875    ///
876    LexerInvalidLiteral,
877
878    /// The SQL expression contains a literal that is not valid.
879    ///
880    /// HTTP Status Code: 400 Bad Request
881    ///
882    LexerInvalidOperator,
883
884    /// The argument given to the LIKE clause in the SQL expression is not valid.
885    ///
886    /// HTTP Status Code: 400 Bad Request
887    ///
888    LikeInvalidInputs,
889
890    /// The XML you provided was not well-formed or did not validate against our published schema.
891    ///
892    /// HTTP Status Code: 400 Bad Request
893    ///
894    MalformedACLError,
895
896    /// The body of your POST request is not well-formed multipart/form-data.
897    ///
898    /// HTTP Status Code: 400 Bad Request
899    ///
900    MalformedPOSTRequest,
901
902    /// Your policy contains a principal that is not valid.
903    ///
904    /// HTTP Status Code: 400 Bad Request
905    ///
906    MalformedPolicy,
907
908    /// This happens when the user sends malformed XML (XML that doesn't conform to the published XSD) for the configuration. The error message is, "The XML you provided was not well-formed or did not validate against our published schema."
909    ///
910    /// HTTP Status Code: 400 Bad Request
911    ///
912    MalformedXML,
913
914    /// Your request was too big.
915    ///
916    /// HTTP Status Code: 400 Bad Request
917    ///
918    MaxMessageLengthExceeded,
919
920    /// Failed to parse SQL expression, try reducing complexity. For example, reduce number of operators used.
921    ///
922    /// HTTP Status Code: 400 Bad Request
923    ///
924    MaxOperatorsExceeded,
925
926    /// Your POST request fields preceding the upload file were too large.
927    ///
928    /// HTTP Status Code: 400 Bad Request
929    ///
930    MaxPostPreDataLengthExceededError,
931
932    /// Your metadata headers exceed the maximum allowed metadata size.
933    ///
934    /// HTTP Status Code: 400 Bad Request
935    ///
936    MetadataTooLarge,
937
938    /// The specified method is not allowed against this resource.
939    ///
940    /// HTTP Status Code: 405 Method Not Allowed
941    ///
942    MethodNotAllowed,
943
944    /// A SOAP attachment was expected, but none were found.
945    ///
946    MissingAttachment,
947
948    /// The request was not signed.Â
949    ///
950    /// HTTP Status Code: 403 Forbidden
951    ///
952    MissingAuthenticationToken,
953
954    /// You must provide the Content-Length HTTP header.
955    ///
956    /// HTTP Status Code: 411 Length Required
957    ///
958    MissingContentLength,
959
960    /// This happens when the user sends an empty XML document as a request. The error message is, "Request body is empty."
961    ///
962    /// HTTP Status Code: 400 Bad Request
963    ///
964    MissingRequestBodyError,
965
966    /// The SelectRequest entity is missing a required parameter. Check the service documentation and try again.
967    ///
968    /// HTTP Status Code: 400 Bad Request
969    ///
970    MissingRequiredParameter,
971
972    /// The SOAP 1.1 request is missing a security element.
973    ///
974    /// HTTP Status Code: 400 Bad Request
975    ///
976    MissingSecurityElement,
977
978    /// Your request is missing a required header.
979    ///
980    /// HTTP Status Code: 400 Bad Request
981    ///
982    MissingSecurityHeader,
983
984    /// Multiple data sources are not supported.
985    ///
986    /// HTTP Status Code: 400 Bad Request
987    ///
988    MultipleDataSourcesUnsupported,
989
990    /// There is no such thing as a logging status subresource for a key.
991    ///
992    /// HTTP Status Code: 400 Bad Request
993    ///
994    NoLoggingStatusForKey,
995
996    /// The specified access point does not exist.
997    ///
998    /// HTTP Status Code: 404 Not Found
999    ///
1000    NoSuchAccessPoint,
1001
1002    /// The specified request was not found.
1003    ///
1004    /// HTTP Status Code: 404 Not Found
1005    ///
1006    NoSuchAsyncRequest,
1007
1008    /// The specified bucket does not exist.
1009    ///
1010    /// HTTP Status Code: 404 Not Found
1011    ///
1012    NoSuchBucket,
1013
1014    /// The specified bucket does not have a bucket policy.
1015    ///
1016    /// HTTP Status Code: 404 Not Found
1017    ///
1018    NoSuchBucketPolicy,
1019
1020    /// The specified bucket does not have a CORS configuration.
1021    ///
1022    /// HTTP Status Code: 404 Not Found
1023    ///
1024    NoSuchCORSConfiguration,
1025
1026    /// The specified key does not exist.
1027    ///
1028    /// HTTP Status Code: 404 Not Found
1029    ///
1030    NoSuchKey,
1031
1032    /// The lifecycle configuration does not exist.
1033    ///
1034    /// HTTP Status Code: 404 Not Found
1035    ///
1036    NoSuchLifecycleConfiguration,
1037
1038    /// The specified Multi-Region Access Point does not exist.
1039    ///
1040    /// HTTP Status Code: 404 Not Found
1041    ///
1042    NoSuchMultiRegionAccessPoint,
1043
1044    /// The specified object does not have an ObjectLock configuration.
1045    ///
1046    /// HTTP Status Code: 404 Not Found
1047    ///
1048    NoSuchObjectLockConfiguration,
1049
1050    /// The specified resource doesn't exist.
1051    ///
1052    /// HTTP Status Code: 404 Not Found
1053    ///
1054    NoSuchResource,
1055
1056    /// The specified tag does not exist.
1057    ///
1058    /// HTTP Status Code: 404 Not Found
1059    ///
1060    NoSuchTagSet,
1061
1062    /// The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.
1063    ///
1064    /// HTTP Status Code: 404 Not Found
1065    ///
1066    NoSuchUpload,
1067
1068    /// Indicates that the version ID specified in the request does not match an existing version.
1069    ///
1070    /// HTTP Status Code: 404 Not Found
1071    ///
1072    NoSuchVersion,
1073
1074    /// The specified bucket does not have a website configuration.
1075    ///
1076    /// HTTP Status Code: 404 Not Found
1077    ///
1078    NoSuchWebsiteConfiguration,
1079
1080    /// No transformation found for this Object Lambda Access Point.
1081    ///
1082    /// HTTP Status Code: 404 Not Found
1083    ///
1084    NoTransformationDefined,
1085
1086    /// The device that generated the token is not owned by the authenticated user.
1087    ///
1088    /// HTTP Status Code: 400 Bad Request
1089    ///
1090    NotDeviceOwnerError,
1091
1092    /// A header you provided implies functionality that is not implemented.
1093    ///
1094    /// HTTP Status Code: 501 Not Implemented
1095    ///
1096    NotImplemented,
1097
1098    /// The resource was not changed.
1099    ///
1100    /// HTTP Status Code: 304 Not Modified
1101    ///
1102    NotModified,
1103
1104    /// Your account is not signed up for the Amazon S3 service. You must sign up before you can use Amazon S3. You can sign up at the following URL: <a href="http://aws.amazon.com/s3">Amazon S3</a>
1105    ///
1106    /// HTTP Status Code: 403 Forbidden
1107    ///
1108    NotSignedUp,
1109
1110    /// An error occurred while parsing a number. This error can be caused by underflow or overflow of integers.
1111    ///
1112    /// HTTP Status Code: 400 Bad Request
1113    ///
1114    NumberFormatError,
1115
1116    /// The Object Lock configuration does not exist for this bucket.
1117    ///
1118    /// HTTP Status Code: 404 Not Found
1119    ///
1120    ObjectLockConfigurationNotFoundError,
1121
1122    /// InputSerialization specifies more than one format (CSV, JSON, or Parquet), or OutputSerialization specifies more than one format (CSV or JSON). For InputSerialization and OutputSerialization, you can specify only one format for each.
1123    ///
1124    /// HTTP Status Code: 400 Bad Request
1125    ///
1126    ObjectSerializationConflict,
1127
1128    /// A conflicting conditional action is currently in progress against this resource. Try again.
1129    ///
1130    /// HTTP Status Code: 409 Conflict
1131    ///
1132    OperationAborted,
1133
1134    /// The number of columns in the result is greater than the maximum allowable number of columns.
1135    ///
1136    /// HTTP Status Code: 400 Bad Request
1137    ///
1138    OverMaxColumn,
1139
1140    /// The Parquet file is above the max row group size.
1141    ///
1142    /// HTTP Status Code: 400 Bad Request
1143    ///
1144    OverMaxParquetBlockSize,
1145
1146    /// The length of a record in the input or result is greater than the maxCharsPerRecord limit of 1 MB.
1147    ///
1148    /// HTTP Status Code: 400 Bad Request
1149    ///
1150    OverMaxRecordSize,
1151
1152    /// The bucket ownership controls were not found.
1153    ///
1154    /// HTTP Status Code: 404 Not Found
1155    ///
1156    OwnershipControlsNotFoundError,
1157
1158    /// An error occurred while parsing the Parquet file. Check the file and try again.
1159    ///
1160    /// HTTP Status Code: 400 Bad Request
1161    ///
1162    ParquetParsingError,
1163
1164    /// The specified Parquet compression codec is not supported.
1165    ///
1166    /// HTTP Status Code: 400 Bad Request
1167    ///
1168    ParquetUnsupportedCompressionCodec,
1169
1170    /// Other expressions are not allowed in the SELECT list when * is used without dot notation in the SQL expression.
1171    ///
1172    /// HTTP Status Code: 400 Bad Request
1173    ///
1174    ParseAsteriskIsNotAloneInSelectList,
1175
1176    /// Cannot mix [] and * in the same expression in a SELECT list in the SQL expression.
1177    ///
1178    /// HTTP Status Code: 400 Bad Request
1179    ///
1180    ParseCannotMixSqbAndWildcardInSelectList,
1181
1182    /// The SQL expression CAST has incorrect arity.
1183    ///
1184    /// HTTP Status Code: 400 Bad Request
1185    ///
1186    ParseCastArity,
1187
1188    /// The SQL expression contains an empty SELECT clause.
1189    ///
1190    /// HTTP Status Code: 400 Bad Request
1191    ///
1192    ParseEmptySelect,
1193
1194    /// The expected token in the SQL expression was not found.
1195    ///
1196    /// HTTP Status Code: 400 Bad Request
1197    ///
1198    ParseExpected2TokenTypes,
1199
1200    /// The expected argument delimiter in the SQL expression was not found.
1201    ///
1202    /// HTTP Status Code: 400 Bad Request
1203    ///
1204    ParseExpectedArgumentDelimiter,
1205
1206    /// The expected date part in the SQL expression was not found.
1207    ///
1208    /// HTTP Status Code: 400 Bad Request
1209    ///
1210    ParseExpectedDatePart,
1211
1212    /// The expected SQL expression was not found.
1213    ///
1214    /// HTTP Status Code: 400 Bad Request
1215    ///
1216    ParseExpectedExpression,
1217
1218    /// The expected identifier for the alias in the SQL expression was not found.
1219    ///
1220    /// HTTP Status Code: 400 Bad Request
1221    ///
1222    ParseExpectedIdentForAlias,
1223
1224    /// The expected identifier for AT name in the SQL expression was not found.
1225    ///
1226    /// HTTP Status Code: 400 Bad Request
1227    ///
1228    ParseExpectedIdentForAt,
1229
1230    /// GROUP is not supported in the SQL expression.
1231    ///
1232    /// HTTP Status Code: 400 Bad Request
1233    ///
1234    ParseExpectedIdentForGroupName,
1235
1236    /// The expected keyword in the SQL expression was not found.
1237    ///
1238    /// HTTP Status Code: 400 Bad Request
1239    ///
1240    ParseExpectedKeyword,
1241
1242    /// The expected left parenthesis after CAST in the SQL expression was not found.
1243    ///
1244    /// HTTP Status Code: 400 Bad Request
1245    ///
1246    ParseExpectedLeftParenAfterCast,
1247
1248    /// The expected left parenthesis in the SQL expression was not found.
1249    ///
1250    /// HTTP Status Code: 400 Bad Request
1251    ///
1252    ParseExpectedLeftParenBuiltinFunctionCall,
1253
1254    /// The expected left parenthesis in the SQL expression was not found.
1255    ///
1256    /// HTTP Status Code: 400 Bad Request
1257    ///
1258    ParseExpectedLeftParenValueConstructor,
1259
1260    /// The SQL expression contains an unsupported use of MEMBER.
1261    ///
1262    /// HTTP Status Code: 400 Bad Request
1263    ///
1264    ParseExpectedMember,
1265
1266    /// The expected number in the SQL expression was not found.
1267    ///
1268    /// HTTP Status Code: 400 Bad Request
1269    ///
1270    ParseExpectedNumber,
1271
1272    /// The expected right parenthesis character in the SQL expression was not found.
1273    ///
1274    /// HTTP Status Code: 400 Bad Request
1275    ///
1276    ParseExpectedRightParenBuiltinFunctionCall,
1277
1278    /// The expected token in the SQL expression was not found.
1279    ///
1280    /// HTTP Status Code: 400 Bad Request
1281    ///
1282    ParseExpectedTokenType,
1283
1284    /// The expected type name in the SQL expression was not found.
1285    ///
1286    /// HTTP Status Code: 400 Bad Request
1287    ///
1288    ParseExpectedTypeName,
1289
1290    /// The expected WHEN clause in the SQL expression was not found. CASE is not supported.
1291    ///
1292    /// HTTP Status Code: 400 Bad Request
1293    ///
1294    ParseExpectedWhenClause,
1295
1296    /// The use of * in the SELECT list in the SQL expression is not valid.
1297    ///
1298    /// HTTP Status Code: 400 Bad Request
1299    ///
1300    ParseInvalidContextForWildcardInSelectList,
1301
1302    /// The SQL expression contains a path component that is not valid.
1303    ///
1304    /// HTTP Status Code: 400 Bad Request
1305    ///
1306    ParseInvalidPathComponent,
1307
1308    /// The SQL expression contains a parameter value that is not valid.
1309    ///
1310    /// HTTP Status Code: 400 Bad Request
1311    ///
1312    ParseInvalidTypeParam,
1313
1314    /// JOIN is not supported in the SQL expression.
1315    ///
1316    /// HTTP Status Code: 400 Bad Request
1317    ///
1318    ParseMalformedJoin,
1319
1320    /// The expected identifier after the @ symbol in the SQL expression was not found.
1321    ///
1322    /// HTTP Status Code: 400 Bad Request
1323    ///
1324    ParseMissingIdentAfterAt,
1325
1326    /// Only one argument is supported for aggregate functions in the SQL expression.
1327    ///
1328    /// HTTP Status Code: 400 Bad Request
1329    ///
1330    ParseNonUnaryAgregateFunctionCall,
1331
1332    /// The SQL expression contains a missing FROM after the SELECT list.
1333    ///
1334    /// HTTP Status Code: 400 Bad Request
1335    ///
1336    ParseSelectMissingFrom,
1337
1338    /// The SQL expression contains an unexpected keyword.
1339    ///
1340    /// HTTP Status Code: 400 Bad Request
1341    ///
1342    ParseUnExpectedKeyword,
1343
1344    /// The SQL expression contains an unexpected operator.
1345    ///
1346    /// HTTP Status Code: 400 Bad Request
1347    ///
1348    ParseUnexpectedOperator,
1349
1350    /// The SQL expression contains an unexpected term.
1351    ///
1352    /// HTTP Status Code: 400 Bad Request
1353    ///
1354    ParseUnexpectedTerm,
1355
1356    /// The SQL expression contains an unexpected token.
1357    ///
1358    /// HTTP Status Code: 400 Bad Request
1359    ///
1360    ParseUnexpectedToken,
1361
1362    /// The SQL expression contains an operator that is not valid.
1363    ///
1364    /// HTTP Status Code: 400 Bad Request
1365    ///
1366    ParseUnknownOperator,
1367
1368    /// The SQL expression contains an unsupported use of ALIAS.
1369    ///
1370    /// HTTP Status Code: 400 Bad Request
1371    ///
1372    ParseUnsupportedAlias,
1373
1374    /// Only COUNT with (*) as a parameter is supported in the SQL expression.
1375    ///
1376    /// HTTP Status Code: 400 Bad Request
1377    ///
1378    ParseUnsupportedCallWithStar,
1379
1380    /// The SQL expression contains an unsupported use of CASE.
1381    ///
1382    /// HTTP Status Code: 400 Bad Request
1383    ///
1384    ParseUnsupportedCase,
1385
1386    /// The SQL expression contains an unsupported use of CASE.
1387    ///
1388    /// HTTP Status Code: 400 Bad Request
1389    ///
1390    ParseUnsupportedCaseClause,
1391
1392    /// The SQL expression contains an unsupported use of GROUP BY.
1393    ///
1394    /// HTTP Status Code: 400 Bad Request
1395    ///
1396    ParseUnsupportedLiteralsGroupBy,
1397
1398    /// The SQL expression contains an unsupported use of SELECT.
1399    ///
1400    /// HTTP Status Code: 400 Bad Request
1401    ///
1402    ParseUnsupportedSelect,
1403
1404    /// The SQL expression contains unsupported syntax.
1405    ///
1406    /// HTTP Status Code: 400 Bad Request
1407    ///
1408    ParseUnsupportedSyntax,
1409
1410    /// The SQL expression contains an unsupported token.
1411    ///
1412    /// HTTP Status Code: 400 Bad Request
1413    ///
1414    ParseUnsupportedToken,
1415
1416    /// The bucket you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint.
1417    ///
1418    /// HTTP Status Code: 301 Moved Permanently
1419    ///
1420    PermanentRedirect,
1421
1422    /// The API operation you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint.
1423    ///
1424    /// HTTP Status Code: 301 Moved Permanently
1425    ///
1426    PermanentRedirectControlError,
1427
1428    /// At least one of the preconditions you specified did not hold.
1429    ///
1430    /// HTTP Status Code: 412 Precondition Failed
1431    ///
1432    PreconditionFailed,
1433
1434    /// Temporary redirect.
1435    ///
1436    /// HTTP Status Code: 307 Moved Temporarily
1437    ///
1438    Redirect,
1439
1440    /// There is no replication configuration for this bucket.
1441    ///
1442    /// HTTP Status Code: 404 Not Found
1443    ///
1444    ReplicationConfigurationNotFoundError,
1445
1446    /// The request header and query parameters used to make the request exceed the maximum allowed size.
1447    ///
1448    /// HTTP Status Code: 400 Bad Request
1449    ///
1450    RequestHeaderSectionTooLarge,
1451
1452    /// Bucket POST must be of the enclosure-type multipart/form-data.
1453    ///
1454    /// HTTP Status Code: 400 Bad Request
1455    ///
1456    RequestIsNotMultiPartContent,
1457
1458    /// The difference between the request time and the server's time is too large.
1459    ///
1460    /// HTTP Status Code: 403 Forbidden
1461    ///
1462    RequestTimeTooSkewed,
1463
1464    /// Your socket connection to the server was not read from or written to within the timeout period.
1465    ///
1466    /// HTTP Status Code: 400 Bad Request
1467    ///
1468    RequestTimeout,
1469
1470    /// Requesting the torrent file of a bucket is not permitted.
1471    ///
1472    /// HTTP Status Code: 400 Bad Request
1473    ///
1474    RequestTorrentOfBucketError,
1475
1476    /// Returned to the original caller when an error is encountered while reading the WriteGetObjectResponse body.
1477    ///
1478    /// HTTP Status Code: 400 Bad Request
1479    ///
1480    ResponseInterrupted,
1481
1482    /// Object restore is already in progress.
1483    ///
1484    /// HTTP Status Code: 409 Conflict
1485    ///
1486    RestoreAlreadyInProgress,
1487
1488    /// The server-side encryption configuration was not found.
1489    ///
1490    /// HTTP Status Code: 400 Bad Request
1491    ///
1492    ServerSideEncryptionConfigurationNotFoundError,
1493
1494    /// Service is unable to handle request.
1495    ///
1496    /// HTTP Status Code: 503 Service Unavailable
1497    ///
1498    ServiceUnavailable,
1499
1500    /// The request signature we calculated does not match the signature you provided. Check your Amazon Web Services secret access key and signing method. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/SOAPAuthentication.html">SOAP Authentication</a> for details.
1501    ///
1502    /// HTTP Status Code: 403 Forbidden
1503    ///
1504    SignatureDoesNotMatch,
1505
1506    /// Reduce your request rate.
1507    ///
1508    /// HTTP Status Code: 503 Slow Down
1509    ///
1510    SlowDown,
1511
1512    /// You are being redirected to the bucket while DNS updates.
1513    ///
1514    /// HTTP Status Code: 307 Moved Temporarily
1515    ///
1516    TemporaryRedirect,
1517
1518    /// The serial number and/or token code you provided is not valid.
1519    ///
1520    /// HTTP Status Code: 400 Bad Request
1521    ///
1522    TokenCodeInvalidError,
1523
1524    /// The provided token must be refreshed.
1525    ///
1526    /// HTTP Status Code: 400 Bad Request
1527    ///
1528    TokenRefreshRequired,
1529
1530    /// You have attempted to create more access points than are allowed for an account. For more information, see Amazon Simple Storage Service endpoints and quotas in the AWS General Reference.
1531    ///
1532    /// HTTP Status Code: 400 Bad Request
1533    ///
1534    TooManyAccessPoints,
1535
1536    /// You have attempted to create more buckets than allowed.
1537    ///
1538    /// HTTP Status Code: 400 Bad Request
1539    ///
1540    TooManyBuckets,
1541
1542    /// You have attempted to create a Multi-Region Access Point with more Regions than are allowed for an account. For more information, see Amazon Simple Storage Service endpoints and quotas in the AWS General Reference.
1543    ///
1544    /// HTTP Status Code: 400 Bad Request
1545    ///
1546    TooManyMultiRegionAccessPointregionsError,
1547
1548    /// You have attempted to create more Multi-Region Access Points than are allowed for an account. For more information, see Amazon Simple Storage Service endpoints and quotas in the AWS General Reference.
1549    ///
1550    /// HTTP Status Code: 400 Bad Request
1551    ///
1552    TooManyMultiRegionAccessPoints,
1553
1554    /// The number of tags exceeds the limit of 50 tags.
1555    ///
1556    /// HTTP Status Code: 400 Bad Request
1557    ///
1558    TooManyTags,
1559
1560    /// Object decompression failed. Check that the object is properly compressed using the format specified in the request.
1561    ///
1562    /// HTTP Status Code: 400 Bad Request
1563    ///
1564    TruncatedInput,
1565
1566    /// You are not authorized to perform this operation.
1567    ///
1568    /// HTTP Status Code: 401 Unauthorized
1569    ///
1570    UnauthorizedAccess,
1571
1572    /// Applicable in China Regions only. Returned when a request is made to a bucket that doesn't have an ICP license. For more information, see ICP Recordal.
1573    ///
1574    /// HTTP Status Code: 403 Forbidden
1575    ///
1576    UnauthorizedAccessError,
1577
1578    /// This request does not support content.
1579    ///
1580    /// HTTP Status Code: 400 Bad Request
1581    ///
1582    UnexpectedContent,
1583
1584    /// Applicable in China Regions only. This request was rejected because the IP was unexpected.
1585    ///
1586    /// HTTP Status Code: 403 Forbidden
1587    ///
1588    UnexpectedIPError,
1589
1590    /// We encountered a record type that is not valid.
1591    ///
1592    /// HTTP Status Code: 400 Bad Request
1593    ///
1594    UnrecognizedFormatException,
1595
1596    /// The email address you provided does not match any account on record.
1597    ///
1598    /// HTTP Status Code: 400 Bad Request
1599    ///
1600    UnresolvableGrantByEmailAddress,
1601
1602    /// The request contained an unsupported argument.
1603    ///
1604    /// HTTP Status Code: 400 Bad Request
1605    ///
1606    UnsupportedArgument,
1607
1608    /// We encountered an unsupported SQL function.
1609    ///
1610    /// HTTP Status Code: 400 Bad Request
1611    ///
1612    UnsupportedFunction,
1613
1614    /// The specified Parquet type is not supported.
1615    ///
1616    /// HTTP Status Code: 400 Bad Request
1617    ///
1618    UnsupportedParquetType,
1619
1620    /// A range header is not supported for this operation.
1621    ///
1622    /// HTTP Status Code: 400 Bad Request
1623    ///
1624    UnsupportedRangeHeader,
1625
1626    /// Scan range queries are not supported on this type of object.
1627    ///
1628    /// HTTP Status Code: 400 Bad Request
1629    ///
1630    UnsupportedScanRangeInput,
1631
1632    /// The provided request is signed with an unsupported STS Token version or the signature version is not supported.
1633    ///
1634    /// HTTP Status Code: 400 Bad Request
1635    ///
1636    UnsupportedSignature,
1637
1638    /// We encountered an unsupported SQL operation.
1639    ///
1640    /// HTTP Status Code: 400 Bad Request
1641    ///
1642    UnsupportedSqlOperation,
1643
1644    /// We encountered an unsupported SQL structure. Check the SQL Reference.
1645    ///
1646    /// HTTP Status Code: 400 Bad Request
1647    ///
1648    UnsupportedSqlStructure,
1649
1650    /// We encountered a storage class that is not supported. Only STANDARD, STANDARD_IA, and ONEZONE_IA storage classes are supported.
1651    ///
1652    /// HTTP Status Code: 400 Bad Request
1653    ///
1654    UnsupportedStorageClass,
1655
1656    /// We encountered syntax that is not valid.
1657    ///
1658    /// HTTP Status Code: 400 Bad Request
1659    ///
1660    UnsupportedSyntax,
1661
1662    /// Your query contains an unsupported type for comparison (e.g. verifying that a Parquet INT96 column type is greater than 0).
1663    ///
1664    /// HTTP Status Code: 400 Bad Request
1665    ///
1666    UnsupportedTypeForQuerying,
1667
1668    /// The bucket POST must contain the specified field name. If it is specified, check the order of the fields.
1669    ///
1670    /// HTTP Status Code: 400 Bad Request
1671    ///
1672    UserKeyMustBeSpecified,
1673
1674    /// A timestamp parse failure occurred in the SQL expression.
1675    ///
1676    /// HTTP Status Code: 400 Bad Request
1677    ///
1678    ValueParseFailure,
1679
1680    Custom(ByteString),
1681}
1682
1683impl S3ErrorCode {
1684    const STATIC_CODE_LIST: &'static [&'static str] = &[
1685        "AccessControlListNotSupported",
1686        "AccessDenied",
1687        "AccessPointAlreadyOwnedByYou",
1688        "AccountProblem",
1689        "AllAccessDisabled",
1690        "AmbiguousFieldName",
1691        "AmbiguousGrantByEmailAddress",
1692        "AuthorizationHeaderMalformed",
1693        "AuthorizationQueryParametersError",
1694        "BadDigest",
1695        "BucketAlreadyExists",
1696        "BucketAlreadyOwnedByYou",
1697        "BucketHasAccessPointsAttached",
1698        "BucketNotEmpty",
1699        "Busy",
1700        "CSVEscapingRecordDelimiter",
1701        "CSVParsingError",
1702        "CSVUnescapedQuote",
1703        "CastFailed",
1704        "ClientTokenConflict",
1705        "ColumnTooLong",
1706        "ConditionalRequestConflict",
1707        "ConnectionClosedByRequester",
1708        "CredentialsNotSupported",
1709        "CrossLocationLoggingProhibited",
1710        "DeviceNotActiveError",
1711        "EmptyRequestBody",
1712        "EndpointNotFound",
1713        "EntityTooLarge",
1714        "EntityTooSmall",
1715        "EvaluatorBindingDoesNotExist",
1716        "EvaluatorInvalidArguments",
1717        "EvaluatorInvalidTimestampFormatPattern",
1718        "EvaluatorInvalidTimestampFormatPatternSymbol",
1719        "EvaluatorInvalidTimestampFormatPatternSymbolForParsing",
1720        "EvaluatorInvalidTimestampFormatPatternToken",
1721        "EvaluatorLikePatternInvalidEscapeSequence",
1722        "EvaluatorNegativeLimit",
1723        "EvaluatorTimestampFormatPatternDuplicateFields",
1724        "EvaluatorTimestampFormatPatternHourClockAmPmMismatch",
1725        "EvaluatorUnterminatedTimestampFormatPatternToken",
1726        "ExpiredToken",
1727        "ExpressionTooLong",
1728        "ExternalEvalException",
1729        "IllegalLocationConstraintException",
1730        "IllegalSqlFunctionArgument",
1731        "IllegalVersioningConfigurationException",
1732        "IncompleteBody",
1733        "IncorrectEndpoint",
1734        "IncorrectNumberOfFilesInPostRequest",
1735        "IncorrectSqlFunctionArgumentType",
1736        "InlineDataTooLarge",
1737        "IntegerOverflow",
1738        "InternalError",
1739        "InvalidAccessKeyId",
1740        "InvalidAccessPoint",
1741        "InvalidAccessPointAliasError",
1742        "InvalidAddressingHeader",
1743        "InvalidArgument",
1744        "InvalidBucketAclWithObjectOwnership",
1745        "InvalidBucketName",
1746        "InvalidBucketOwnerAWSAccountID",
1747        "InvalidBucketState",
1748        "InvalidCast",
1749        "InvalidColumnIndex",
1750        "InvalidCompressionFormat",
1751        "InvalidDataSource",
1752        "InvalidDataType",
1753        "InvalidDigest",
1754        "InvalidEncryptionAlgorithmError",
1755        "InvalidExpressionType",
1756        "InvalidFileHeaderInfo",
1757        "InvalidHostHeader",
1758        "InvalidHttpMethod",
1759        "InvalidJsonType",
1760        "InvalidKeyPath",
1761        "InvalidLocationConstraint",
1762        "InvalidObjectState",
1763        "InvalidPart",
1764        "InvalidPartOrder",
1765        "InvalidPayer",
1766        "InvalidPolicyDocument",
1767        "InvalidQuoteFields",
1768        "InvalidRange",
1769        "InvalidRequest",
1770        "InvalidRequestParameter",
1771        "InvalidSOAPRequest",
1772        "InvalidScanRange",
1773        "InvalidSecurity",
1774        "InvalidSessionException",
1775        "InvalidSignature",
1776        "InvalidStorageClass",
1777        "InvalidTableAlias",
1778        "InvalidTag",
1779        "InvalidTargetBucketForLogging",
1780        "InvalidTextEncoding",
1781        "InvalidToken",
1782        "InvalidURI",
1783        "JSONParsingError",
1784        "KeyTooLongError",
1785        "LexerInvalidChar",
1786        "LexerInvalidIONLiteral",
1787        "LexerInvalidLiteral",
1788        "LexerInvalidOperator",
1789        "LikeInvalidInputs",
1790        "MalformedACLError",
1791        "MalformedPOSTRequest",
1792        "MalformedPolicy",
1793        "MalformedXML",
1794        "MaxMessageLengthExceeded",
1795        "MaxOperatorsExceeded",
1796        "MaxPostPreDataLengthExceededError",
1797        "MetadataTooLarge",
1798        "MethodNotAllowed",
1799        "MissingAttachment",
1800        "MissingAuthenticationToken",
1801        "MissingContentLength",
1802        "MissingRequestBodyError",
1803        "MissingRequiredParameter",
1804        "MissingSecurityElement",
1805        "MissingSecurityHeader",
1806        "MultipleDataSourcesUnsupported",
1807        "NoLoggingStatusForKey",
1808        "NoSuchAccessPoint",
1809        "NoSuchAsyncRequest",
1810        "NoSuchBucket",
1811        "NoSuchBucketPolicy",
1812        "NoSuchCORSConfiguration",
1813        "NoSuchKey",
1814        "NoSuchLifecycleConfiguration",
1815        "NoSuchMultiRegionAccessPoint",
1816        "NoSuchObjectLockConfiguration",
1817        "NoSuchResource",
1818        "NoSuchTagSet",
1819        "NoSuchUpload",
1820        "NoSuchVersion",
1821        "NoSuchWebsiteConfiguration",
1822        "NoTransformationDefined",
1823        "NotDeviceOwnerError",
1824        "NotImplemented",
1825        "NotModified",
1826        "NotSignedUp",
1827        "NumberFormatError",
1828        "ObjectLockConfigurationNotFoundError",
1829        "ObjectSerializationConflict",
1830        "OperationAborted",
1831        "OverMaxColumn",
1832        "OverMaxParquetBlockSize",
1833        "OverMaxRecordSize",
1834        "OwnershipControlsNotFoundError",
1835        "ParquetParsingError",
1836        "ParquetUnsupportedCompressionCodec",
1837        "ParseAsteriskIsNotAloneInSelectList",
1838        "ParseCannotMixSqbAndWildcardInSelectList",
1839        "ParseCastArity",
1840        "ParseEmptySelect",
1841        "ParseExpected2TokenTypes",
1842        "ParseExpectedArgumentDelimiter",
1843        "ParseExpectedDatePart",
1844        "ParseExpectedExpression",
1845        "ParseExpectedIdentForAlias",
1846        "ParseExpectedIdentForAt",
1847        "ParseExpectedIdentForGroupName",
1848        "ParseExpectedKeyword",
1849        "ParseExpectedLeftParenAfterCast",
1850        "ParseExpectedLeftParenBuiltinFunctionCall",
1851        "ParseExpectedLeftParenValueConstructor",
1852        "ParseExpectedMember",
1853        "ParseExpectedNumber",
1854        "ParseExpectedRightParenBuiltinFunctionCall",
1855        "ParseExpectedTokenType",
1856        "ParseExpectedTypeName",
1857        "ParseExpectedWhenClause",
1858        "ParseInvalidContextForWildcardInSelectList",
1859        "ParseInvalidPathComponent",
1860        "ParseInvalidTypeParam",
1861        "ParseMalformedJoin",
1862        "ParseMissingIdentAfterAt",
1863        "ParseNonUnaryAgregateFunctionCall",
1864        "ParseSelectMissingFrom",
1865        "ParseUnExpectedKeyword",
1866        "ParseUnexpectedOperator",
1867        "ParseUnexpectedTerm",
1868        "ParseUnexpectedToken",
1869        "ParseUnknownOperator",
1870        "ParseUnsupportedAlias",
1871        "ParseUnsupportedCallWithStar",
1872        "ParseUnsupportedCase",
1873        "ParseUnsupportedCaseClause",
1874        "ParseUnsupportedLiteralsGroupBy",
1875        "ParseUnsupportedSelect",
1876        "ParseUnsupportedSyntax",
1877        "ParseUnsupportedToken",
1878        "PermanentRedirect",
1879        "PermanentRedirectControlError",
1880        "PreconditionFailed",
1881        "Redirect",
1882        "ReplicationConfigurationNotFoundError",
1883        "RequestHeaderSectionTooLarge",
1884        "RequestIsNotMultiPartContent",
1885        "RequestTimeTooSkewed",
1886        "RequestTimeout",
1887        "RequestTorrentOfBucketError",
1888        "ResponseInterrupted",
1889        "RestoreAlreadyInProgress",
1890        "ServerSideEncryptionConfigurationNotFoundError",
1891        "ServiceUnavailable",
1892        "SignatureDoesNotMatch",
1893        "SlowDown",
1894        "TemporaryRedirect",
1895        "TokenCodeInvalidError",
1896        "TokenRefreshRequired",
1897        "TooManyAccessPoints",
1898        "TooManyBuckets",
1899        "TooManyMultiRegionAccessPointregionsError",
1900        "TooManyMultiRegionAccessPoints",
1901        "TooManyTags",
1902        "TruncatedInput",
1903        "UnauthorizedAccess",
1904        "UnauthorizedAccessError",
1905        "UnexpectedContent",
1906        "UnexpectedIPError",
1907        "UnrecognizedFormatException",
1908        "UnresolvableGrantByEmailAddress",
1909        "UnsupportedArgument",
1910        "UnsupportedFunction",
1911        "UnsupportedParquetType",
1912        "UnsupportedRangeHeader",
1913        "UnsupportedScanRangeInput",
1914        "UnsupportedSignature",
1915        "UnsupportedSqlOperation",
1916        "UnsupportedSqlStructure",
1917        "UnsupportedStorageClass",
1918        "UnsupportedSyntax",
1919        "UnsupportedTypeForQuerying",
1920        "UserKeyMustBeSpecified",
1921        "ValueParseFailure",
1922    ];
1923
1924    #[must_use]
1925    fn as_enum_tag(&self) -> usize {
1926        match self {
1927            Self::AccessControlListNotSupported => 0,
1928            Self::AccessDenied => 1,
1929            Self::AccessPointAlreadyOwnedByYou => 2,
1930            Self::AccountProblem => 3,
1931            Self::AllAccessDisabled => 4,
1932            Self::AmbiguousFieldName => 5,
1933            Self::AmbiguousGrantByEmailAddress => 6,
1934            Self::AuthorizationHeaderMalformed => 7,
1935            Self::AuthorizationQueryParametersError => 8,
1936            Self::BadDigest => 9,
1937            Self::BucketAlreadyExists => 10,
1938            Self::BucketAlreadyOwnedByYou => 11,
1939            Self::BucketHasAccessPointsAttached => 12,
1940            Self::BucketNotEmpty => 13,
1941            Self::Busy => 14,
1942            Self::CSVEscapingRecordDelimiter => 15,
1943            Self::CSVParsingError => 16,
1944            Self::CSVUnescapedQuote => 17,
1945            Self::CastFailed => 18,
1946            Self::ClientTokenConflict => 19,
1947            Self::ColumnTooLong => 20,
1948            Self::ConditionalRequestConflict => 21,
1949            Self::ConnectionClosedByRequester => 22,
1950            Self::CredentialsNotSupported => 23,
1951            Self::CrossLocationLoggingProhibited => 24,
1952            Self::DeviceNotActiveError => 25,
1953            Self::EmptyRequestBody => 26,
1954            Self::EndpointNotFound => 27,
1955            Self::EntityTooLarge => 28,
1956            Self::EntityTooSmall => 29,
1957            Self::EvaluatorBindingDoesNotExist => 30,
1958            Self::EvaluatorInvalidArguments => 31,
1959            Self::EvaluatorInvalidTimestampFormatPattern => 32,
1960            Self::EvaluatorInvalidTimestampFormatPatternSymbol => 33,
1961            Self::EvaluatorInvalidTimestampFormatPatternSymbolForParsing => 34,
1962            Self::EvaluatorInvalidTimestampFormatPatternToken => 35,
1963            Self::EvaluatorLikePatternInvalidEscapeSequence => 36,
1964            Self::EvaluatorNegativeLimit => 37,
1965            Self::EvaluatorTimestampFormatPatternDuplicateFields => 38,
1966            Self::EvaluatorTimestampFormatPatternHourClockAmPmMismatch => 39,
1967            Self::EvaluatorUnterminatedTimestampFormatPatternToken => 40,
1968            Self::ExpiredToken => 41,
1969            Self::ExpressionTooLong => 42,
1970            Self::ExternalEvalException => 43,
1971            Self::IllegalLocationConstraintException => 44,
1972            Self::IllegalSqlFunctionArgument => 45,
1973            Self::IllegalVersioningConfigurationException => 46,
1974            Self::IncompleteBody => 47,
1975            Self::IncorrectEndpoint => 48,
1976            Self::IncorrectNumberOfFilesInPostRequest => 49,
1977            Self::IncorrectSqlFunctionArgumentType => 50,
1978            Self::InlineDataTooLarge => 51,
1979            Self::IntegerOverflow => 52,
1980            Self::InternalError => 53,
1981            Self::InvalidAccessKeyId => 54,
1982            Self::InvalidAccessPoint => 55,
1983            Self::InvalidAccessPointAliasError => 56,
1984            Self::InvalidAddressingHeader => 57,
1985            Self::InvalidArgument => 58,
1986            Self::InvalidBucketAclWithObjectOwnership => 59,
1987            Self::InvalidBucketName => 60,
1988            Self::InvalidBucketOwnerAWSAccountID => 61,
1989            Self::InvalidBucketState => 62,
1990            Self::InvalidCast => 63,
1991            Self::InvalidColumnIndex => 64,
1992            Self::InvalidCompressionFormat => 65,
1993            Self::InvalidDataSource => 66,
1994            Self::InvalidDataType => 67,
1995            Self::InvalidDigest => 68,
1996            Self::InvalidEncryptionAlgorithmError => 69,
1997            Self::InvalidExpressionType => 70,
1998            Self::InvalidFileHeaderInfo => 71,
1999            Self::InvalidHostHeader => 72,
2000            Self::InvalidHttpMethod => 73,
2001            Self::InvalidJsonType => 74,
2002            Self::InvalidKeyPath => 75,
2003            Self::InvalidLocationConstraint => 76,
2004            Self::InvalidObjectState => 77,
2005            Self::InvalidPart => 78,
2006            Self::InvalidPartOrder => 79,
2007            Self::InvalidPayer => 80,
2008            Self::InvalidPolicyDocument => 81,
2009            Self::InvalidQuoteFields => 82,
2010            Self::InvalidRange => 83,
2011            Self::InvalidRequest => 84,
2012            Self::InvalidRequestParameter => 85,
2013            Self::InvalidSOAPRequest => 86,
2014            Self::InvalidScanRange => 87,
2015            Self::InvalidSecurity => 88,
2016            Self::InvalidSessionException => 89,
2017            Self::InvalidSignature => 90,
2018            Self::InvalidStorageClass => 91,
2019            Self::InvalidTableAlias => 92,
2020            Self::InvalidTag => 93,
2021            Self::InvalidTargetBucketForLogging => 94,
2022            Self::InvalidTextEncoding => 95,
2023            Self::InvalidToken => 96,
2024            Self::InvalidURI => 97,
2025            Self::JSONParsingError => 98,
2026            Self::KeyTooLongError => 99,
2027            Self::LexerInvalidChar => 100,
2028            Self::LexerInvalidIONLiteral => 101,
2029            Self::LexerInvalidLiteral => 102,
2030            Self::LexerInvalidOperator => 103,
2031            Self::LikeInvalidInputs => 104,
2032            Self::MalformedACLError => 105,
2033            Self::MalformedPOSTRequest => 106,
2034            Self::MalformedPolicy => 107,
2035            Self::MalformedXML => 108,
2036            Self::MaxMessageLengthExceeded => 109,
2037            Self::MaxOperatorsExceeded => 110,
2038            Self::MaxPostPreDataLengthExceededError => 111,
2039            Self::MetadataTooLarge => 112,
2040            Self::MethodNotAllowed => 113,
2041            Self::MissingAttachment => 114,
2042            Self::MissingAuthenticationToken => 115,
2043            Self::MissingContentLength => 116,
2044            Self::MissingRequestBodyError => 117,
2045            Self::MissingRequiredParameter => 118,
2046            Self::MissingSecurityElement => 119,
2047            Self::MissingSecurityHeader => 120,
2048            Self::MultipleDataSourcesUnsupported => 121,
2049            Self::NoLoggingStatusForKey => 122,
2050            Self::NoSuchAccessPoint => 123,
2051            Self::NoSuchAsyncRequest => 124,
2052            Self::NoSuchBucket => 125,
2053            Self::NoSuchBucketPolicy => 126,
2054            Self::NoSuchCORSConfiguration => 127,
2055            Self::NoSuchKey => 128,
2056            Self::NoSuchLifecycleConfiguration => 129,
2057            Self::NoSuchMultiRegionAccessPoint => 130,
2058            Self::NoSuchObjectLockConfiguration => 131,
2059            Self::NoSuchResource => 132,
2060            Self::NoSuchTagSet => 133,
2061            Self::NoSuchUpload => 134,
2062            Self::NoSuchVersion => 135,
2063            Self::NoSuchWebsiteConfiguration => 136,
2064            Self::NoTransformationDefined => 137,
2065            Self::NotDeviceOwnerError => 138,
2066            Self::NotImplemented => 139,
2067            Self::NotModified => 140,
2068            Self::NotSignedUp => 141,
2069            Self::NumberFormatError => 142,
2070            Self::ObjectLockConfigurationNotFoundError => 143,
2071            Self::ObjectSerializationConflict => 144,
2072            Self::OperationAborted => 145,
2073            Self::OverMaxColumn => 146,
2074            Self::OverMaxParquetBlockSize => 147,
2075            Self::OverMaxRecordSize => 148,
2076            Self::OwnershipControlsNotFoundError => 149,
2077            Self::ParquetParsingError => 150,
2078            Self::ParquetUnsupportedCompressionCodec => 151,
2079            Self::ParseAsteriskIsNotAloneInSelectList => 152,
2080            Self::ParseCannotMixSqbAndWildcardInSelectList => 153,
2081            Self::ParseCastArity => 154,
2082            Self::ParseEmptySelect => 155,
2083            Self::ParseExpected2TokenTypes => 156,
2084            Self::ParseExpectedArgumentDelimiter => 157,
2085            Self::ParseExpectedDatePart => 158,
2086            Self::ParseExpectedExpression => 159,
2087            Self::ParseExpectedIdentForAlias => 160,
2088            Self::ParseExpectedIdentForAt => 161,
2089            Self::ParseExpectedIdentForGroupName => 162,
2090            Self::ParseExpectedKeyword => 163,
2091            Self::ParseExpectedLeftParenAfterCast => 164,
2092            Self::ParseExpectedLeftParenBuiltinFunctionCall => 165,
2093            Self::ParseExpectedLeftParenValueConstructor => 166,
2094            Self::ParseExpectedMember => 167,
2095            Self::ParseExpectedNumber => 168,
2096            Self::ParseExpectedRightParenBuiltinFunctionCall => 169,
2097            Self::ParseExpectedTokenType => 170,
2098            Self::ParseExpectedTypeName => 171,
2099            Self::ParseExpectedWhenClause => 172,
2100            Self::ParseInvalidContextForWildcardInSelectList => 173,
2101            Self::ParseInvalidPathComponent => 174,
2102            Self::ParseInvalidTypeParam => 175,
2103            Self::ParseMalformedJoin => 176,
2104            Self::ParseMissingIdentAfterAt => 177,
2105            Self::ParseNonUnaryAgregateFunctionCall => 178,
2106            Self::ParseSelectMissingFrom => 179,
2107            Self::ParseUnExpectedKeyword => 180,
2108            Self::ParseUnexpectedOperator => 181,
2109            Self::ParseUnexpectedTerm => 182,
2110            Self::ParseUnexpectedToken => 183,
2111            Self::ParseUnknownOperator => 184,
2112            Self::ParseUnsupportedAlias => 185,
2113            Self::ParseUnsupportedCallWithStar => 186,
2114            Self::ParseUnsupportedCase => 187,
2115            Self::ParseUnsupportedCaseClause => 188,
2116            Self::ParseUnsupportedLiteralsGroupBy => 189,
2117            Self::ParseUnsupportedSelect => 190,
2118            Self::ParseUnsupportedSyntax => 191,
2119            Self::ParseUnsupportedToken => 192,
2120            Self::PermanentRedirect => 193,
2121            Self::PermanentRedirectControlError => 194,
2122            Self::PreconditionFailed => 195,
2123            Self::Redirect => 196,
2124            Self::ReplicationConfigurationNotFoundError => 197,
2125            Self::RequestHeaderSectionTooLarge => 198,
2126            Self::RequestIsNotMultiPartContent => 199,
2127            Self::RequestTimeTooSkewed => 200,
2128            Self::RequestTimeout => 201,
2129            Self::RequestTorrentOfBucketError => 202,
2130            Self::ResponseInterrupted => 203,
2131            Self::RestoreAlreadyInProgress => 204,
2132            Self::ServerSideEncryptionConfigurationNotFoundError => 205,
2133            Self::ServiceUnavailable => 206,
2134            Self::SignatureDoesNotMatch => 207,
2135            Self::SlowDown => 208,
2136            Self::TemporaryRedirect => 209,
2137            Self::TokenCodeInvalidError => 210,
2138            Self::TokenRefreshRequired => 211,
2139            Self::TooManyAccessPoints => 212,
2140            Self::TooManyBuckets => 213,
2141            Self::TooManyMultiRegionAccessPointregionsError => 214,
2142            Self::TooManyMultiRegionAccessPoints => 215,
2143            Self::TooManyTags => 216,
2144            Self::TruncatedInput => 217,
2145            Self::UnauthorizedAccess => 218,
2146            Self::UnauthorizedAccessError => 219,
2147            Self::UnexpectedContent => 220,
2148            Self::UnexpectedIPError => 221,
2149            Self::UnrecognizedFormatException => 222,
2150            Self::UnresolvableGrantByEmailAddress => 223,
2151            Self::UnsupportedArgument => 224,
2152            Self::UnsupportedFunction => 225,
2153            Self::UnsupportedParquetType => 226,
2154            Self::UnsupportedRangeHeader => 227,
2155            Self::UnsupportedScanRangeInput => 228,
2156            Self::UnsupportedSignature => 229,
2157            Self::UnsupportedSqlOperation => 230,
2158            Self::UnsupportedSqlStructure => 231,
2159            Self::UnsupportedStorageClass => 232,
2160            Self::UnsupportedSyntax => 233,
2161            Self::UnsupportedTypeForQuerying => 234,
2162            Self::UserKeyMustBeSpecified => 235,
2163            Self::ValueParseFailure => 236,
2164            Self::Custom(_) => usize::MAX,
2165        }
2166    }
2167
2168    pub(crate) fn as_static_str(&self) -> Option<&'static str> {
2169        Self::STATIC_CODE_LIST.get(self.as_enum_tag()).copied()
2170    }
2171
2172    #[must_use]
2173    pub fn from_bytes(s: &[u8]) -> Option<Self> {
2174        match s {
2175            b"AccessControlListNotSupported" => Some(Self::AccessControlListNotSupported),
2176            b"AccessDenied" => Some(Self::AccessDenied),
2177            b"AccessPointAlreadyOwnedByYou" => Some(Self::AccessPointAlreadyOwnedByYou),
2178            b"AccountProblem" => Some(Self::AccountProblem),
2179            b"AllAccessDisabled" => Some(Self::AllAccessDisabled),
2180            b"AmbiguousFieldName" => Some(Self::AmbiguousFieldName),
2181            b"AmbiguousGrantByEmailAddress" => Some(Self::AmbiguousGrantByEmailAddress),
2182            b"AuthorizationHeaderMalformed" => Some(Self::AuthorizationHeaderMalformed),
2183            b"AuthorizationQueryParametersError" => Some(Self::AuthorizationQueryParametersError),
2184            b"BadDigest" => Some(Self::BadDigest),
2185            b"BucketAlreadyExists" => Some(Self::BucketAlreadyExists),
2186            b"BucketAlreadyOwnedByYou" => Some(Self::BucketAlreadyOwnedByYou),
2187            b"BucketHasAccessPointsAttached" => Some(Self::BucketHasAccessPointsAttached),
2188            b"BucketNotEmpty" => Some(Self::BucketNotEmpty),
2189            b"Busy" => Some(Self::Busy),
2190            b"CSVEscapingRecordDelimiter" => Some(Self::CSVEscapingRecordDelimiter),
2191            b"CSVParsingError" => Some(Self::CSVParsingError),
2192            b"CSVUnescapedQuote" => Some(Self::CSVUnescapedQuote),
2193            b"CastFailed" => Some(Self::CastFailed),
2194            b"ClientTokenConflict" => Some(Self::ClientTokenConflict),
2195            b"ColumnTooLong" => Some(Self::ColumnTooLong),
2196            b"ConditionalRequestConflict" => Some(Self::ConditionalRequestConflict),
2197            b"ConnectionClosedByRequester" => Some(Self::ConnectionClosedByRequester),
2198            b"CredentialsNotSupported" => Some(Self::CredentialsNotSupported),
2199            b"CrossLocationLoggingProhibited" => Some(Self::CrossLocationLoggingProhibited),
2200            b"DeviceNotActiveError" => Some(Self::DeviceNotActiveError),
2201            b"EmptyRequestBody" => Some(Self::EmptyRequestBody),
2202            b"EndpointNotFound" => Some(Self::EndpointNotFound),
2203            b"EntityTooLarge" => Some(Self::EntityTooLarge),
2204            b"EntityTooSmall" => Some(Self::EntityTooSmall),
2205            b"EvaluatorBindingDoesNotExist" => Some(Self::EvaluatorBindingDoesNotExist),
2206            b"EvaluatorInvalidArguments" => Some(Self::EvaluatorInvalidArguments),
2207            b"EvaluatorInvalidTimestampFormatPattern" => Some(Self::EvaluatorInvalidTimestampFormatPattern),
2208            b"EvaluatorInvalidTimestampFormatPatternSymbol" => Some(Self::EvaluatorInvalidTimestampFormatPatternSymbol),
2209            b"EvaluatorInvalidTimestampFormatPatternSymbolForParsing" => {
2210                Some(Self::EvaluatorInvalidTimestampFormatPatternSymbolForParsing)
2211            }
2212            b"EvaluatorInvalidTimestampFormatPatternToken" => Some(Self::EvaluatorInvalidTimestampFormatPatternToken),
2213            b"EvaluatorLikePatternInvalidEscapeSequence" => Some(Self::EvaluatorLikePatternInvalidEscapeSequence),
2214            b"EvaluatorNegativeLimit" => Some(Self::EvaluatorNegativeLimit),
2215            b"EvaluatorTimestampFormatPatternDuplicateFields" => Some(Self::EvaluatorTimestampFormatPatternDuplicateFields),
2216            b"EvaluatorTimestampFormatPatternHourClockAmPmMismatch" => {
2217                Some(Self::EvaluatorTimestampFormatPatternHourClockAmPmMismatch)
2218            }
2219            b"EvaluatorUnterminatedTimestampFormatPatternToken" => Some(Self::EvaluatorUnterminatedTimestampFormatPatternToken),
2220            b"ExpiredToken" => Some(Self::ExpiredToken),
2221            b"ExpressionTooLong" => Some(Self::ExpressionTooLong),
2222            b"ExternalEvalException" => Some(Self::ExternalEvalException),
2223            b"IllegalLocationConstraintException" => Some(Self::IllegalLocationConstraintException),
2224            b"IllegalSqlFunctionArgument" => Some(Self::IllegalSqlFunctionArgument),
2225            b"IllegalVersioningConfigurationException" => Some(Self::IllegalVersioningConfigurationException),
2226            b"IncompleteBody" => Some(Self::IncompleteBody),
2227            b"IncorrectEndpoint" => Some(Self::IncorrectEndpoint),
2228            b"IncorrectNumberOfFilesInPostRequest" => Some(Self::IncorrectNumberOfFilesInPostRequest),
2229            b"IncorrectSqlFunctionArgumentType" => Some(Self::IncorrectSqlFunctionArgumentType),
2230            b"InlineDataTooLarge" => Some(Self::InlineDataTooLarge),
2231            b"IntegerOverflow" => Some(Self::IntegerOverflow),
2232            b"InternalError" => Some(Self::InternalError),
2233            b"InvalidAccessKeyId" => Some(Self::InvalidAccessKeyId),
2234            b"InvalidAccessPoint" => Some(Self::InvalidAccessPoint),
2235            b"InvalidAccessPointAliasError" => Some(Self::InvalidAccessPointAliasError),
2236            b"InvalidAddressingHeader" => Some(Self::InvalidAddressingHeader),
2237            b"InvalidArgument" => Some(Self::InvalidArgument),
2238            b"InvalidBucketAclWithObjectOwnership" => Some(Self::InvalidBucketAclWithObjectOwnership),
2239            b"InvalidBucketName" => Some(Self::InvalidBucketName),
2240            b"InvalidBucketOwnerAWSAccountID" => Some(Self::InvalidBucketOwnerAWSAccountID),
2241            b"InvalidBucketState" => Some(Self::InvalidBucketState),
2242            b"InvalidCast" => Some(Self::InvalidCast),
2243            b"InvalidColumnIndex" => Some(Self::InvalidColumnIndex),
2244            b"InvalidCompressionFormat" => Some(Self::InvalidCompressionFormat),
2245            b"InvalidDataSource" => Some(Self::InvalidDataSource),
2246            b"InvalidDataType" => Some(Self::InvalidDataType),
2247            b"InvalidDigest" => Some(Self::InvalidDigest),
2248            b"InvalidEncryptionAlgorithmError" => Some(Self::InvalidEncryptionAlgorithmError),
2249            b"InvalidExpressionType" => Some(Self::InvalidExpressionType),
2250            b"InvalidFileHeaderInfo" => Some(Self::InvalidFileHeaderInfo),
2251            b"InvalidHostHeader" => Some(Self::InvalidHostHeader),
2252            b"InvalidHttpMethod" => Some(Self::InvalidHttpMethod),
2253            b"InvalidJsonType" => Some(Self::InvalidJsonType),
2254            b"InvalidKeyPath" => Some(Self::InvalidKeyPath),
2255            b"InvalidLocationConstraint" => Some(Self::InvalidLocationConstraint),
2256            b"InvalidObjectState" => Some(Self::InvalidObjectState),
2257            b"InvalidPart" => Some(Self::InvalidPart),
2258            b"InvalidPartOrder" => Some(Self::InvalidPartOrder),
2259            b"InvalidPayer" => Some(Self::InvalidPayer),
2260            b"InvalidPolicyDocument" => Some(Self::InvalidPolicyDocument),
2261            b"InvalidQuoteFields" => Some(Self::InvalidQuoteFields),
2262            b"InvalidRange" => Some(Self::InvalidRange),
2263            b"InvalidRequest" => Some(Self::InvalidRequest),
2264            b"InvalidRequestParameter" => Some(Self::InvalidRequestParameter),
2265            b"InvalidSOAPRequest" => Some(Self::InvalidSOAPRequest),
2266            b"InvalidScanRange" => Some(Self::InvalidScanRange),
2267            b"InvalidSecurity" => Some(Self::InvalidSecurity),
2268            b"InvalidSessionException" => Some(Self::InvalidSessionException),
2269            b"InvalidSignature" => Some(Self::InvalidSignature),
2270            b"InvalidStorageClass" => Some(Self::InvalidStorageClass),
2271            b"InvalidTableAlias" => Some(Self::InvalidTableAlias),
2272            b"InvalidTag" => Some(Self::InvalidTag),
2273            b"InvalidTargetBucketForLogging" => Some(Self::InvalidTargetBucketForLogging),
2274            b"InvalidTextEncoding" => Some(Self::InvalidTextEncoding),
2275            b"InvalidToken" => Some(Self::InvalidToken),
2276            b"InvalidURI" => Some(Self::InvalidURI),
2277            b"JSONParsingError" => Some(Self::JSONParsingError),
2278            b"KeyTooLongError" => Some(Self::KeyTooLongError),
2279            b"LexerInvalidChar" => Some(Self::LexerInvalidChar),
2280            b"LexerInvalidIONLiteral" => Some(Self::LexerInvalidIONLiteral),
2281            b"LexerInvalidLiteral" => Some(Self::LexerInvalidLiteral),
2282            b"LexerInvalidOperator" => Some(Self::LexerInvalidOperator),
2283            b"LikeInvalidInputs" => Some(Self::LikeInvalidInputs),
2284            b"MalformedACLError" => Some(Self::MalformedACLError),
2285            b"MalformedPOSTRequest" => Some(Self::MalformedPOSTRequest),
2286            b"MalformedPolicy" => Some(Self::MalformedPolicy),
2287            b"MalformedXML" => Some(Self::MalformedXML),
2288            b"MaxMessageLengthExceeded" => Some(Self::MaxMessageLengthExceeded),
2289            b"MaxOperatorsExceeded" => Some(Self::MaxOperatorsExceeded),
2290            b"MaxPostPreDataLengthExceededError" => Some(Self::MaxPostPreDataLengthExceededError),
2291            b"MetadataTooLarge" => Some(Self::MetadataTooLarge),
2292            b"MethodNotAllowed" => Some(Self::MethodNotAllowed),
2293            b"MissingAttachment" => Some(Self::MissingAttachment),
2294            b"MissingAuthenticationToken" => Some(Self::MissingAuthenticationToken),
2295            b"MissingContentLength" => Some(Self::MissingContentLength),
2296            b"MissingRequestBodyError" => Some(Self::MissingRequestBodyError),
2297            b"MissingRequiredParameter" => Some(Self::MissingRequiredParameter),
2298            b"MissingSecurityElement" => Some(Self::MissingSecurityElement),
2299            b"MissingSecurityHeader" => Some(Self::MissingSecurityHeader),
2300            b"MultipleDataSourcesUnsupported" => Some(Self::MultipleDataSourcesUnsupported),
2301            b"NoLoggingStatusForKey" => Some(Self::NoLoggingStatusForKey),
2302            b"NoSuchAccessPoint" => Some(Self::NoSuchAccessPoint),
2303            b"NoSuchAsyncRequest" => Some(Self::NoSuchAsyncRequest),
2304            b"NoSuchBucket" => Some(Self::NoSuchBucket),
2305            b"NoSuchBucketPolicy" => Some(Self::NoSuchBucketPolicy),
2306            b"NoSuchCORSConfiguration" => Some(Self::NoSuchCORSConfiguration),
2307            b"NoSuchKey" => Some(Self::NoSuchKey),
2308            b"NoSuchLifecycleConfiguration" => Some(Self::NoSuchLifecycleConfiguration),
2309            b"NoSuchMultiRegionAccessPoint" => Some(Self::NoSuchMultiRegionAccessPoint),
2310            b"NoSuchObjectLockConfiguration" => Some(Self::NoSuchObjectLockConfiguration),
2311            b"NoSuchResource" => Some(Self::NoSuchResource),
2312            b"NoSuchTagSet" => Some(Self::NoSuchTagSet),
2313            b"NoSuchUpload" => Some(Self::NoSuchUpload),
2314            b"NoSuchVersion" => Some(Self::NoSuchVersion),
2315            b"NoSuchWebsiteConfiguration" => Some(Self::NoSuchWebsiteConfiguration),
2316            b"NoTransformationDefined" => Some(Self::NoTransformationDefined),
2317            b"NotDeviceOwnerError" => Some(Self::NotDeviceOwnerError),
2318            b"NotImplemented" => Some(Self::NotImplemented),
2319            b"NotModified" => Some(Self::NotModified),
2320            b"NotSignedUp" => Some(Self::NotSignedUp),
2321            b"NumberFormatError" => Some(Self::NumberFormatError),
2322            b"ObjectLockConfigurationNotFoundError" => Some(Self::ObjectLockConfigurationNotFoundError),
2323            b"ObjectSerializationConflict" => Some(Self::ObjectSerializationConflict),
2324            b"OperationAborted" => Some(Self::OperationAborted),
2325            b"OverMaxColumn" => Some(Self::OverMaxColumn),
2326            b"OverMaxParquetBlockSize" => Some(Self::OverMaxParquetBlockSize),
2327            b"OverMaxRecordSize" => Some(Self::OverMaxRecordSize),
2328            b"OwnershipControlsNotFoundError" => Some(Self::OwnershipControlsNotFoundError),
2329            b"ParquetParsingError" => Some(Self::ParquetParsingError),
2330            b"ParquetUnsupportedCompressionCodec" => Some(Self::ParquetUnsupportedCompressionCodec),
2331            b"ParseAsteriskIsNotAloneInSelectList" => Some(Self::ParseAsteriskIsNotAloneInSelectList),
2332            b"ParseCannotMixSqbAndWildcardInSelectList" => Some(Self::ParseCannotMixSqbAndWildcardInSelectList),
2333            b"ParseCastArity" => Some(Self::ParseCastArity),
2334            b"ParseEmptySelect" => Some(Self::ParseEmptySelect),
2335            b"ParseExpected2TokenTypes" => Some(Self::ParseExpected2TokenTypes),
2336            b"ParseExpectedArgumentDelimiter" => Some(Self::ParseExpectedArgumentDelimiter),
2337            b"ParseExpectedDatePart" => Some(Self::ParseExpectedDatePart),
2338            b"ParseExpectedExpression" => Some(Self::ParseExpectedExpression),
2339            b"ParseExpectedIdentForAlias" => Some(Self::ParseExpectedIdentForAlias),
2340            b"ParseExpectedIdentForAt" => Some(Self::ParseExpectedIdentForAt),
2341            b"ParseExpectedIdentForGroupName" => Some(Self::ParseExpectedIdentForGroupName),
2342            b"ParseExpectedKeyword" => Some(Self::ParseExpectedKeyword),
2343            b"ParseExpectedLeftParenAfterCast" => Some(Self::ParseExpectedLeftParenAfterCast),
2344            b"ParseExpectedLeftParenBuiltinFunctionCall" => Some(Self::ParseExpectedLeftParenBuiltinFunctionCall),
2345            b"ParseExpectedLeftParenValueConstructor" => Some(Self::ParseExpectedLeftParenValueConstructor),
2346            b"ParseExpectedMember" => Some(Self::ParseExpectedMember),
2347            b"ParseExpectedNumber" => Some(Self::ParseExpectedNumber),
2348            b"ParseExpectedRightParenBuiltinFunctionCall" => Some(Self::ParseExpectedRightParenBuiltinFunctionCall),
2349            b"ParseExpectedTokenType" => Some(Self::ParseExpectedTokenType),
2350            b"ParseExpectedTypeName" => Some(Self::ParseExpectedTypeName),
2351            b"ParseExpectedWhenClause" => Some(Self::ParseExpectedWhenClause),
2352            b"ParseInvalidContextForWildcardInSelectList" => Some(Self::ParseInvalidContextForWildcardInSelectList),
2353            b"ParseInvalidPathComponent" => Some(Self::ParseInvalidPathComponent),
2354            b"ParseInvalidTypeParam" => Some(Self::ParseInvalidTypeParam),
2355            b"ParseMalformedJoin" => Some(Self::ParseMalformedJoin),
2356            b"ParseMissingIdentAfterAt" => Some(Self::ParseMissingIdentAfterAt),
2357            b"ParseNonUnaryAgregateFunctionCall" => Some(Self::ParseNonUnaryAgregateFunctionCall),
2358            b"ParseSelectMissingFrom" => Some(Self::ParseSelectMissingFrom),
2359            b"ParseUnExpectedKeyword" => Some(Self::ParseUnExpectedKeyword),
2360            b"ParseUnexpectedOperator" => Some(Self::ParseUnexpectedOperator),
2361            b"ParseUnexpectedTerm" => Some(Self::ParseUnexpectedTerm),
2362            b"ParseUnexpectedToken" => Some(Self::ParseUnexpectedToken),
2363            b"ParseUnknownOperator" => Some(Self::ParseUnknownOperator),
2364            b"ParseUnsupportedAlias" => Some(Self::ParseUnsupportedAlias),
2365            b"ParseUnsupportedCallWithStar" => Some(Self::ParseUnsupportedCallWithStar),
2366            b"ParseUnsupportedCase" => Some(Self::ParseUnsupportedCase),
2367            b"ParseUnsupportedCaseClause" => Some(Self::ParseUnsupportedCaseClause),
2368            b"ParseUnsupportedLiteralsGroupBy" => Some(Self::ParseUnsupportedLiteralsGroupBy),
2369            b"ParseUnsupportedSelect" => Some(Self::ParseUnsupportedSelect),
2370            b"ParseUnsupportedSyntax" => Some(Self::ParseUnsupportedSyntax),
2371            b"ParseUnsupportedToken" => Some(Self::ParseUnsupportedToken),
2372            b"PermanentRedirect" => Some(Self::PermanentRedirect),
2373            b"PermanentRedirectControlError" => Some(Self::PermanentRedirectControlError),
2374            b"PreconditionFailed" => Some(Self::PreconditionFailed),
2375            b"Redirect" => Some(Self::Redirect),
2376            b"ReplicationConfigurationNotFoundError" => Some(Self::ReplicationConfigurationNotFoundError),
2377            b"RequestHeaderSectionTooLarge" => Some(Self::RequestHeaderSectionTooLarge),
2378            b"RequestIsNotMultiPartContent" => Some(Self::RequestIsNotMultiPartContent),
2379            b"RequestTimeTooSkewed" => Some(Self::RequestTimeTooSkewed),
2380            b"RequestTimeout" => Some(Self::RequestTimeout),
2381            b"RequestTorrentOfBucketError" => Some(Self::RequestTorrentOfBucketError),
2382            b"ResponseInterrupted" => Some(Self::ResponseInterrupted),
2383            b"RestoreAlreadyInProgress" => Some(Self::RestoreAlreadyInProgress),
2384            b"ServerSideEncryptionConfigurationNotFoundError" => Some(Self::ServerSideEncryptionConfigurationNotFoundError),
2385            b"ServiceUnavailable" => Some(Self::ServiceUnavailable),
2386            b"SignatureDoesNotMatch" => Some(Self::SignatureDoesNotMatch),
2387            b"SlowDown" => Some(Self::SlowDown),
2388            b"TemporaryRedirect" => Some(Self::TemporaryRedirect),
2389            b"TokenCodeInvalidError" => Some(Self::TokenCodeInvalidError),
2390            b"TokenRefreshRequired" => Some(Self::TokenRefreshRequired),
2391            b"TooManyAccessPoints" => Some(Self::TooManyAccessPoints),
2392            b"TooManyBuckets" => Some(Self::TooManyBuckets),
2393            b"TooManyMultiRegionAccessPointregionsError" => Some(Self::TooManyMultiRegionAccessPointregionsError),
2394            b"TooManyMultiRegionAccessPoints" => Some(Self::TooManyMultiRegionAccessPoints),
2395            b"TooManyTags" => Some(Self::TooManyTags),
2396            b"TruncatedInput" => Some(Self::TruncatedInput),
2397            b"UnauthorizedAccess" => Some(Self::UnauthorizedAccess),
2398            b"UnauthorizedAccessError" => Some(Self::UnauthorizedAccessError),
2399            b"UnexpectedContent" => Some(Self::UnexpectedContent),
2400            b"UnexpectedIPError" => Some(Self::UnexpectedIPError),
2401            b"UnrecognizedFormatException" => Some(Self::UnrecognizedFormatException),
2402            b"UnresolvableGrantByEmailAddress" => Some(Self::UnresolvableGrantByEmailAddress),
2403            b"UnsupportedArgument" => Some(Self::UnsupportedArgument),
2404            b"UnsupportedFunction" => Some(Self::UnsupportedFunction),
2405            b"UnsupportedParquetType" => Some(Self::UnsupportedParquetType),
2406            b"UnsupportedRangeHeader" => Some(Self::UnsupportedRangeHeader),
2407            b"UnsupportedScanRangeInput" => Some(Self::UnsupportedScanRangeInput),
2408            b"UnsupportedSignature" => Some(Self::UnsupportedSignature),
2409            b"UnsupportedSqlOperation" => Some(Self::UnsupportedSqlOperation),
2410            b"UnsupportedSqlStructure" => Some(Self::UnsupportedSqlStructure),
2411            b"UnsupportedStorageClass" => Some(Self::UnsupportedStorageClass),
2412            b"UnsupportedSyntax" => Some(Self::UnsupportedSyntax),
2413            b"UnsupportedTypeForQuerying" => Some(Self::UnsupportedTypeForQuerying),
2414            b"UserKeyMustBeSpecified" => Some(Self::UserKeyMustBeSpecified),
2415            b"ValueParseFailure" => Some(Self::ValueParseFailure),
2416            _ => std::str::from_utf8(s).ok().map(|s| Self::Custom(s.into())),
2417        }
2418    }
2419
2420    #[allow(clippy::match_same_arms)]
2421    #[must_use]
2422    pub fn status_code(&self) -> Option<StatusCode> {
2423        match self {
2424            Self::AccessControlListNotSupported => Some(StatusCode::BAD_REQUEST),
2425            Self::AccessDenied => Some(StatusCode::FORBIDDEN),
2426            Self::AccessPointAlreadyOwnedByYou => Some(StatusCode::CONFLICT),
2427            Self::AccountProblem => Some(StatusCode::FORBIDDEN),
2428            Self::AllAccessDisabled => Some(StatusCode::FORBIDDEN),
2429            Self::AmbiguousFieldName => Some(StatusCode::BAD_REQUEST),
2430            Self::AmbiguousGrantByEmailAddress => Some(StatusCode::BAD_REQUEST),
2431            Self::AuthorizationHeaderMalformed => Some(StatusCode::BAD_REQUEST),
2432            Self::AuthorizationQueryParametersError => Some(StatusCode::BAD_REQUEST),
2433            Self::BadDigest => Some(StatusCode::BAD_REQUEST),
2434            Self::BucketAlreadyExists => Some(StatusCode::CONFLICT),
2435            Self::BucketAlreadyOwnedByYou => Some(StatusCode::CONFLICT),
2436            Self::BucketHasAccessPointsAttached => Some(StatusCode::BAD_REQUEST),
2437            Self::BucketNotEmpty => Some(StatusCode::CONFLICT),
2438            Self::Busy => Some(StatusCode::SERVICE_UNAVAILABLE),
2439            Self::CSVEscapingRecordDelimiter => Some(StatusCode::BAD_REQUEST),
2440            Self::CSVParsingError => Some(StatusCode::BAD_REQUEST),
2441            Self::CSVUnescapedQuote => Some(StatusCode::BAD_REQUEST),
2442            Self::CastFailed => Some(StatusCode::BAD_REQUEST),
2443            Self::ClientTokenConflict => Some(StatusCode::CONFLICT),
2444            Self::ColumnTooLong => Some(StatusCode::BAD_REQUEST),
2445            Self::ConditionalRequestConflict => Some(StatusCode::CONFLICT),
2446            Self::ConnectionClosedByRequester => Some(StatusCode::BAD_REQUEST),
2447            Self::CredentialsNotSupported => Some(StatusCode::BAD_REQUEST),
2448            Self::CrossLocationLoggingProhibited => Some(StatusCode::FORBIDDEN),
2449            Self::DeviceNotActiveError => Some(StatusCode::BAD_REQUEST),
2450            Self::EmptyRequestBody => Some(StatusCode::BAD_REQUEST),
2451            Self::EndpointNotFound => Some(StatusCode::BAD_REQUEST),
2452            Self::EntityTooLarge => Some(StatusCode::BAD_REQUEST),
2453            Self::EntityTooSmall => Some(StatusCode::BAD_REQUEST),
2454            Self::EvaluatorBindingDoesNotExist => Some(StatusCode::BAD_REQUEST),
2455            Self::EvaluatorInvalidArguments => Some(StatusCode::BAD_REQUEST),
2456            Self::EvaluatorInvalidTimestampFormatPattern => Some(StatusCode::BAD_REQUEST),
2457            Self::EvaluatorInvalidTimestampFormatPatternSymbol => Some(StatusCode::BAD_REQUEST),
2458            Self::EvaluatorInvalidTimestampFormatPatternSymbolForParsing => Some(StatusCode::BAD_REQUEST),
2459            Self::EvaluatorInvalidTimestampFormatPatternToken => Some(StatusCode::BAD_REQUEST),
2460            Self::EvaluatorLikePatternInvalidEscapeSequence => Some(StatusCode::BAD_REQUEST),
2461            Self::EvaluatorNegativeLimit => Some(StatusCode::BAD_REQUEST),
2462            Self::EvaluatorTimestampFormatPatternDuplicateFields => Some(StatusCode::BAD_REQUEST),
2463            Self::EvaluatorTimestampFormatPatternHourClockAmPmMismatch => Some(StatusCode::BAD_REQUEST),
2464            Self::EvaluatorUnterminatedTimestampFormatPatternToken => Some(StatusCode::BAD_REQUEST),
2465            Self::ExpiredToken => Some(StatusCode::BAD_REQUEST),
2466            Self::ExpressionTooLong => Some(StatusCode::BAD_REQUEST),
2467            Self::ExternalEvalException => Some(StatusCode::BAD_REQUEST),
2468            Self::IllegalLocationConstraintException => Some(StatusCode::BAD_REQUEST),
2469            Self::IllegalSqlFunctionArgument => Some(StatusCode::BAD_REQUEST),
2470            Self::IllegalVersioningConfigurationException => Some(StatusCode::BAD_REQUEST),
2471            Self::IncompleteBody => Some(StatusCode::BAD_REQUEST),
2472            Self::IncorrectEndpoint => Some(StatusCode::BAD_REQUEST),
2473            Self::IncorrectNumberOfFilesInPostRequest => Some(StatusCode::BAD_REQUEST),
2474            Self::IncorrectSqlFunctionArgumentType => Some(StatusCode::BAD_REQUEST),
2475            Self::InlineDataTooLarge => Some(StatusCode::BAD_REQUEST),
2476            Self::IntegerOverflow => Some(StatusCode::BAD_REQUEST),
2477            Self::InternalError => Some(StatusCode::INTERNAL_SERVER_ERROR),
2478            Self::InvalidAccessKeyId => Some(StatusCode::FORBIDDEN),
2479            Self::InvalidAccessPoint => Some(StatusCode::BAD_REQUEST),
2480            Self::InvalidAccessPointAliasError => Some(StatusCode::BAD_REQUEST),
2481            Self::InvalidAddressingHeader => None,
2482            Self::InvalidArgument => Some(StatusCode::BAD_REQUEST),
2483            Self::InvalidBucketAclWithObjectOwnership => Some(StatusCode::BAD_REQUEST),
2484            Self::InvalidBucketName => Some(StatusCode::BAD_REQUEST),
2485            Self::InvalidBucketOwnerAWSAccountID => Some(StatusCode::BAD_REQUEST),
2486            Self::InvalidBucketState => Some(StatusCode::CONFLICT),
2487            Self::InvalidCast => Some(StatusCode::BAD_REQUEST),
2488            Self::InvalidColumnIndex => Some(StatusCode::BAD_REQUEST),
2489            Self::InvalidCompressionFormat => Some(StatusCode::BAD_REQUEST),
2490            Self::InvalidDataSource => Some(StatusCode::BAD_REQUEST),
2491            Self::InvalidDataType => Some(StatusCode::BAD_REQUEST),
2492            Self::InvalidDigest => Some(StatusCode::BAD_REQUEST),
2493            Self::InvalidEncryptionAlgorithmError => Some(StatusCode::BAD_REQUEST),
2494            Self::InvalidExpressionType => Some(StatusCode::BAD_REQUEST),
2495            Self::InvalidFileHeaderInfo => Some(StatusCode::BAD_REQUEST),
2496            Self::InvalidHostHeader => Some(StatusCode::BAD_REQUEST),
2497            Self::InvalidHttpMethod => Some(StatusCode::BAD_REQUEST),
2498            Self::InvalidJsonType => Some(StatusCode::BAD_REQUEST),
2499            Self::InvalidKeyPath => Some(StatusCode::BAD_REQUEST),
2500            Self::InvalidLocationConstraint => Some(StatusCode::BAD_REQUEST),
2501            Self::InvalidObjectState => Some(StatusCode::FORBIDDEN),
2502            Self::InvalidPart => Some(StatusCode::BAD_REQUEST),
2503            Self::InvalidPartOrder => Some(StatusCode::BAD_REQUEST),
2504            Self::InvalidPayer => Some(StatusCode::FORBIDDEN),
2505            Self::InvalidPolicyDocument => Some(StatusCode::BAD_REQUEST),
2506            Self::InvalidQuoteFields => Some(StatusCode::BAD_REQUEST),
2507            Self::InvalidRange => Some(StatusCode::RANGE_NOT_SATISFIABLE),
2508            Self::InvalidRequest => Some(StatusCode::BAD_REQUEST),
2509            Self::InvalidRequestParameter => Some(StatusCode::BAD_REQUEST),
2510            Self::InvalidSOAPRequest => Some(StatusCode::BAD_REQUEST),
2511            Self::InvalidScanRange => Some(StatusCode::BAD_REQUEST),
2512            Self::InvalidSecurity => Some(StatusCode::FORBIDDEN),
2513            Self::InvalidSessionException => Some(StatusCode::BAD_REQUEST),
2514            Self::InvalidSignature => Some(StatusCode::BAD_REQUEST),
2515            Self::InvalidStorageClass => Some(StatusCode::BAD_REQUEST),
2516            Self::InvalidTableAlias => Some(StatusCode::BAD_REQUEST),
2517            Self::InvalidTag => Some(StatusCode::BAD_REQUEST),
2518            Self::InvalidTargetBucketForLogging => Some(StatusCode::BAD_REQUEST),
2519            Self::InvalidTextEncoding => Some(StatusCode::BAD_REQUEST),
2520            Self::InvalidToken => Some(StatusCode::BAD_REQUEST),
2521            Self::InvalidURI => Some(StatusCode::BAD_REQUEST),
2522            Self::JSONParsingError => Some(StatusCode::BAD_REQUEST),
2523            Self::KeyTooLongError => Some(StatusCode::BAD_REQUEST),
2524            Self::LexerInvalidChar => Some(StatusCode::BAD_REQUEST),
2525            Self::LexerInvalidIONLiteral => Some(StatusCode::BAD_REQUEST),
2526            Self::LexerInvalidLiteral => Some(StatusCode::BAD_REQUEST),
2527            Self::LexerInvalidOperator => Some(StatusCode::BAD_REQUEST),
2528            Self::LikeInvalidInputs => Some(StatusCode::BAD_REQUEST),
2529            Self::MalformedACLError => Some(StatusCode::BAD_REQUEST),
2530            Self::MalformedPOSTRequest => Some(StatusCode::BAD_REQUEST),
2531            Self::MalformedPolicy => Some(StatusCode::BAD_REQUEST),
2532            Self::MalformedXML => Some(StatusCode::BAD_REQUEST),
2533            Self::MaxMessageLengthExceeded => Some(StatusCode::BAD_REQUEST),
2534            Self::MaxOperatorsExceeded => Some(StatusCode::BAD_REQUEST),
2535            Self::MaxPostPreDataLengthExceededError => Some(StatusCode::BAD_REQUEST),
2536            Self::MetadataTooLarge => Some(StatusCode::BAD_REQUEST),
2537            Self::MethodNotAllowed => Some(StatusCode::METHOD_NOT_ALLOWED),
2538            Self::MissingAttachment => None,
2539            Self::MissingAuthenticationToken => Some(StatusCode::FORBIDDEN),
2540            Self::MissingContentLength => Some(StatusCode::LENGTH_REQUIRED),
2541            Self::MissingRequestBodyError => Some(StatusCode::BAD_REQUEST),
2542            Self::MissingRequiredParameter => Some(StatusCode::BAD_REQUEST),
2543            Self::MissingSecurityElement => Some(StatusCode::BAD_REQUEST),
2544            Self::MissingSecurityHeader => Some(StatusCode::BAD_REQUEST),
2545            Self::MultipleDataSourcesUnsupported => Some(StatusCode::BAD_REQUEST),
2546            Self::NoLoggingStatusForKey => Some(StatusCode::BAD_REQUEST),
2547            Self::NoSuchAccessPoint => Some(StatusCode::NOT_FOUND),
2548            Self::NoSuchAsyncRequest => Some(StatusCode::NOT_FOUND),
2549            Self::NoSuchBucket => Some(StatusCode::NOT_FOUND),
2550            Self::NoSuchBucketPolicy => Some(StatusCode::NOT_FOUND),
2551            Self::NoSuchCORSConfiguration => Some(StatusCode::NOT_FOUND),
2552            Self::NoSuchKey => Some(StatusCode::NOT_FOUND),
2553            Self::NoSuchLifecycleConfiguration => Some(StatusCode::NOT_FOUND),
2554            Self::NoSuchMultiRegionAccessPoint => Some(StatusCode::NOT_FOUND),
2555            Self::NoSuchObjectLockConfiguration => Some(StatusCode::NOT_FOUND),
2556            Self::NoSuchResource => Some(StatusCode::NOT_FOUND),
2557            Self::NoSuchTagSet => Some(StatusCode::NOT_FOUND),
2558            Self::NoSuchUpload => Some(StatusCode::NOT_FOUND),
2559            Self::NoSuchVersion => Some(StatusCode::NOT_FOUND),
2560            Self::NoSuchWebsiteConfiguration => Some(StatusCode::NOT_FOUND),
2561            Self::NoTransformationDefined => Some(StatusCode::NOT_FOUND),
2562            Self::NotDeviceOwnerError => Some(StatusCode::BAD_REQUEST),
2563            Self::NotImplemented => Some(StatusCode::NOT_IMPLEMENTED),
2564            Self::NotModified => Some(StatusCode::NOT_MODIFIED),
2565            Self::NotSignedUp => Some(StatusCode::FORBIDDEN),
2566            Self::NumberFormatError => Some(StatusCode::BAD_REQUEST),
2567            Self::ObjectLockConfigurationNotFoundError => Some(StatusCode::NOT_FOUND),
2568            Self::ObjectSerializationConflict => Some(StatusCode::BAD_REQUEST),
2569            Self::OperationAborted => Some(StatusCode::CONFLICT),
2570            Self::OverMaxColumn => Some(StatusCode::BAD_REQUEST),
2571            Self::OverMaxParquetBlockSize => Some(StatusCode::BAD_REQUEST),
2572            Self::OverMaxRecordSize => Some(StatusCode::BAD_REQUEST),
2573            Self::OwnershipControlsNotFoundError => Some(StatusCode::NOT_FOUND),
2574            Self::ParquetParsingError => Some(StatusCode::BAD_REQUEST),
2575            Self::ParquetUnsupportedCompressionCodec => Some(StatusCode::BAD_REQUEST),
2576            Self::ParseAsteriskIsNotAloneInSelectList => Some(StatusCode::BAD_REQUEST),
2577            Self::ParseCannotMixSqbAndWildcardInSelectList => Some(StatusCode::BAD_REQUEST),
2578            Self::ParseCastArity => Some(StatusCode::BAD_REQUEST),
2579            Self::ParseEmptySelect => Some(StatusCode::BAD_REQUEST),
2580            Self::ParseExpected2TokenTypes => Some(StatusCode::BAD_REQUEST),
2581            Self::ParseExpectedArgumentDelimiter => Some(StatusCode::BAD_REQUEST),
2582            Self::ParseExpectedDatePart => Some(StatusCode::BAD_REQUEST),
2583            Self::ParseExpectedExpression => Some(StatusCode::BAD_REQUEST),
2584            Self::ParseExpectedIdentForAlias => Some(StatusCode::BAD_REQUEST),
2585            Self::ParseExpectedIdentForAt => Some(StatusCode::BAD_REQUEST),
2586            Self::ParseExpectedIdentForGroupName => Some(StatusCode::BAD_REQUEST),
2587            Self::ParseExpectedKeyword => Some(StatusCode::BAD_REQUEST),
2588            Self::ParseExpectedLeftParenAfterCast => Some(StatusCode::BAD_REQUEST),
2589            Self::ParseExpectedLeftParenBuiltinFunctionCall => Some(StatusCode::BAD_REQUEST),
2590            Self::ParseExpectedLeftParenValueConstructor => Some(StatusCode::BAD_REQUEST),
2591            Self::ParseExpectedMember => Some(StatusCode::BAD_REQUEST),
2592            Self::ParseExpectedNumber => Some(StatusCode::BAD_REQUEST),
2593            Self::ParseExpectedRightParenBuiltinFunctionCall => Some(StatusCode::BAD_REQUEST),
2594            Self::ParseExpectedTokenType => Some(StatusCode::BAD_REQUEST),
2595            Self::ParseExpectedTypeName => Some(StatusCode::BAD_REQUEST),
2596            Self::ParseExpectedWhenClause => Some(StatusCode::BAD_REQUEST),
2597            Self::ParseInvalidContextForWildcardInSelectList => Some(StatusCode::BAD_REQUEST),
2598            Self::ParseInvalidPathComponent => Some(StatusCode::BAD_REQUEST),
2599            Self::ParseInvalidTypeParam => Some(StatusCode::BAD_REQUEST),
2600            Self::ParseMalformedJoin => Some(StatusCode::BAD_REQUEST),
2601            Self::ParseMissingIdentAfterAt => Some(StatusCode::BAD_REQUEST),
2602            Self::ParseNonUnaryAgregateFunctionCall => Some(StatusCode::BAD_REQUEST),
2603            Self::ParseSelectMissingFrom => Some(StatusCode::BAD_REQUEST),
2604            Self::ParseUnExpectedKeyword => Some(StatusCode::BAD_REQUEST),
2605            Self::ParseUnexpectedOperator => Some(StatusCode::BAD_REQUEST),
2606            Self::ParseUnexpectedTerm => Some(StatusCode::BAD_REQUEST),
2607            Self::ParseUnexpectedToken => Some(StatusCode::BAD_REQUEST),
2608            Self::ParseUnknownOperator => Some(StatusCode::BAD_REQUEST),
2609            Self::ParseUnsupportedAlias => Some(StatusCode::BAD_REQUEST),
2610            Self::ParseUnsupportedCallWithStar => Some(StatusCode::BAD_REQUEST),
2611            Self::ParseUnsupportedCase => Some(StatusCode::BAD_REQUEST),
2612            Self::ParseUnsupportedCaseClause => Some(StatusCode::BAD_REQUEST),
2613            Self::ParseUnsupportedLiteralsGroupBy => Some(StatusCode::BAD_REQUEST),
2614            Self::ParseUnsupportedSelect => Some(StatusCode::BAD_REQUEST),
2615            Self::ParseUnsupportedSyntax => Some(StatusCode::BAD_REQUEST),
2616            Self::ParseUnsupportedToken => Some(StatusCode::BAD_REQUEST),
2617            Self::PermanentRedirect => Some(StatusCode::MOVED_PERMANENTLY),
2618            Self::PermanentRedirectControlError => Some(StatusCode::MOVED_PERMANENTLY),
2619            Self::PreconditionFailed => Some(StatusCode::PRECONDITION_FAILED),
2620            Self::Redirect => Some(StatusCode::TEMPORARY_REDIRECT),
2621            Self::ReplicationConfigurationNotFoundError => Some(StatusCode::NOT_FOUND),
2622            Self::RequestHeaderSectionTooLarge => Some(StatusCode::BAD_REQUEST),
2623            Self::RequestIsNotMultiPartContent => Some(StatusCode::BAD_REQUEST),
2624            Self::RequestTimeTooSkewed => Some(StatusCode::FORBIDDEN),
2625            Self::RequestTimeout => Some(StatusCode::BAD_REQUEST),
2626            Self::RequestTorrentOfBucketError => Some(StatusCode::BAD_REQUEST),
2627            Self::ResponseInterrupted => Some(StatusCode::BAD_REQUEST),
2628            Self::RestoreAlreadyInProgress => Some(StatusCode::CONFLICT),
2629            Self::ServerSideEncryptionConfigurationNotFoundError => Some(StatusCode::BAD_REQUEST),
2630            Self::ServiceUnavailable => Some(StatusCode::SERVICE_UNAVAILABLE),
2631            Self::SignatureDoesNotMatch => Some(StatusCode::FORBIDDEN),
2632            Self::SlowDown => Some(StatusCode::SERVICE_UNAVAILABLE),
2633            Self::TemporaryRedirect => Some(StatusCode::TEMPORARY_REDIRECT),
2634            Self::TokenCodeInvalidError => Some(StatusCode::BAD_REQUEST),
2635            Self::TokenRefreshRequired => Some(StatusCode::BAD_REQUEST),
2636            Self::TooManyAccessPoints => Some(StatusCode::BAD_REQUEST),
2637            Self::TooManyBuckets => Some(StatusCode::BAD_REQUEST),
2638            Self::TooManyMultiRegionAccessPointregionsError => Some(StatusCode::BAD_REQUEST),
2639            Self::TooManyMultiRegionAccessPoints => Some(StatusCode::BAD_REQUEST),
2640            Self::TooManyTags => Some(StatusCode::BAD_REQUEST),
2641            Self::TruncatedInput => Some(StatusCode::BAD_REQUEST),
2642            Self::UnauthorizedAccess => Some(StatusCode::UNAUTHORIZED),
2643            Self::UnauthorizedAccessError => Some(StatusCode::FORBIDDEN),
2644            Self::UnexpectedContent => Some(StatusCode::BAD_REQUEST),
2645            Self::UnexpectedIPError => Some(StatusCode::FORBIDDEN),
2646            Self::UnrecognizedFormatException => Some(StatusCode::BAD_REQUEST),
2647            Self::UnresolvableGrantByEmailAddress => Some(StatusCode::BAD_REQUEST),
2648            Self::UnsupportedArgument => Some(StatusCode::BAD_REQUEST),
2649            Self::UnsupportedFunction => Some(StatusCode::BAD_REQUEST),
2650            Self::UnsupportedParquetType => Some(StatusCode::BAD_REQUEST),
2651            Self::UnsupportedRangeHeader => Some(StatusCode::BAD_REQUEST),
2652            Self::UnsupportedScanRangeInput => Some(StatusCode::BAD_REQUEST),
2653            Self::UnsupportedSignature => Some(StatusCode::BAD_REQUEST),
2654            Self::UnsupportedSqlOperation => Some(StatusCode::BAD_REQUEST),
2655            Self::UnsupportedSqlStructure => Some(StatusCode::BAD_REQUEST),
2656            Self::UnsupportedStorageClass => Some(StatusCode::BAD_REQUEST),
2657            Self::UnsupportedSyntax => Some(StatusCode::BAD_REQUEST),
2658            Self::UnsupportedTypeForQuerying => Some(StatusCode::BAD_REQUEST),
2659            Self::UserKeyMustBeSpecified => Some(StatusCode::BAD_REQUEST),
2660            Self::ValueParseFailure => Some(StatusCode::BAD_REQUEST),
2661            Self::Custom(_) => None,
2662        }
2663    }
2664}