2015-02-15 16:48:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								/ *  
						 
					
						
							
								
									
										
										
										
											2019-04-10 02:39:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								 *  MinIO  Cloud  Storage ,  ( C )  2015 ,  2016 ,  2017 ,  2018  MinIO ,  Inc . 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-15 16:48:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								 * 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  Licensed  under  the  Apache  License ,  Version  2.0  ( the  "License" ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  you  may  not  use  this  file  except  in  compliance  with  the  License . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  You  may  obtain  a  copy  of  the  License  at 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 * 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *      http : //www.apache.org/licenses/LICENSE-2.0
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 * 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  Unless  required  by  applicable  law  or  agreed  to  in  writing ,  software 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  distributed  under  the  License  is  distributed  on  an  "AS IS"  BASIS , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  WITHOUT  WARRANTIES  OR  CONDITIONS  OF  ANY  KIND ,  either  express  or  implied . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  See  the  License  for  the  specific  language  governing  permissions  and 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  limitations  under  the  License . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 * / 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-19 07:23:42 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								package  cmd  
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								import  (  
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"context" 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									"encoding/xml" 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 15:06:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"fmt" 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									"net/http" 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-12 11:38:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"net/url" 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-08 08:11:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"strings" 
							 
						 
					
						
							
								
									
										
										
										
											2017-10-22 13:30:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-12-03 01:32:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/Azure/azure-storage-blob-go/azblob" 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"google.golang.org/api/googleapi" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-30 07:35:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									minio  "github.com/minio/minio-go/v6" 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-26 08:33:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/cmd/config/etcd/dns" 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-04 07:55:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/cmd/crypto" 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-13 03:07:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/cmd/logger" 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-01 02:54:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/pkg/auth" 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-06 15:50:10 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/pkg/bucket/lifecycle" 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-28 06:12:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									objectlock  "github.com/minio/minio/pkg/bucket/object/lock" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									"github.com/minio/minio/pkg/bucket/object/tagging" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									"github.com/minio/minio/pkg/bucket/policy" 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-16 04:03:41 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/pkg/event" 
							 
						 
					
						
							
								
									
										
										
										
											2017-10-22 13:30:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									"github.com/minio/minio/pkg/hash" 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								)  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 15:52:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// APIError structure
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								type  APIError  struct  {  
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									Code            string 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Description     string 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									HTTPStatusCode  int 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 15:52:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// APIErrorResponse - error response format
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								type  APIErrorResponse  struct  {  
						 
					
						
							
								
									
										
										
										
											2015-12-10 07:38:40 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									XMLName     xml . Name  ` xml:"Error" json:"-" ` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Code        string 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Message     string 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-23 16:39:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									Key         string  ` xml:"Key,omitempty" json:"Key,omitempty" ` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									BucketName  string  ` xml:"BucketName,omitempty" json:"BucketName,omitempty" ` 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-10 07:38:40 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									Resource    string 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-06 07:28:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									Region      string  ` xml:"Region,omitempty" json:"Region,omitempty" ` 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									RequestID   string  ` xml:"RequestId" json:"RequestId" ` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									HostID      string  ` xml:"HostId" json:"HostId" ` 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// APIErrorCode type of error status.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								type  APIErrorCode  int  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-23 07:28:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// Error codes, non exhaustive list - http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
  
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								const  (  
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNone  APIErrorCode  =  iota 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAccessDenied 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrBadDigest 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEntityTooSmall 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEntityTooLarge 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-22 16:23:54 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrPolicyTooLarge 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrIncompleteBody 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInternalError 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidAccessKeyID 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidBucketName 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidDigest 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRange 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-04 08:32:04 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidCopyPartRange 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCopyPartRangeSource 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidMaxKeys 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-24 14:14:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidEncodingMethod 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidMaxUploads 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidMaxParts 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidPartNumberMarker 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequestBody 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCopySource 
							 
						 
					
						
							
								
									
										
										
										
											2016-12-27 08:29:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidMetadataDirective 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidCopyDest 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidPolicyDocument 
							 
						 
					
						
							
								
									
										
										
										
											2016-10-21 07:09:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidObjectState 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedXML 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingContentLength 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingContentMD5 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingRequestBodyError 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-16 14:07:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMissingSecurityHeader 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNoSuchBucket 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrNoSuchBucketPolicy 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-20 04:20:33 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchBucketLifecycle 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-08 19:16:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchLifecycleConfiguration 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-05 17:42:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchBucketSSEConfig 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNoSuchKey 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrNoSuchUpload 
							 
						 
					
						
							
								
									
										
										
										
											2018-12-13 03:43:44 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchVersion 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNotImplemented 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-28 16:18:18 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrPreconditionFailed 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrRequestTimeTooSkewed 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrSignatureDoesNotMatch 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMethodNotAllowed 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidPart 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidPartOrder 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAuthorizationHeaderMalformed 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedPOSTRequest 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-10 04:37:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrPOSTFileRequired 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrSignatureVersionNotSupported 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrBucketNotEmpty 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAllAccessDisabled 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedPolicy 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMissingFields 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingCredTag 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrCredMalformed 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRegion 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-19 08:25:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidServiceS3 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidServiceSTS 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequestVersion 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSignTag 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSignHeadersTag 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedDate 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedPresignedDate 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedCredentialDate 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedCredentialRegion 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedExpires 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNegativeExpires 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrAuthHeaderEmpty 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrExpiredPresignRequest 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-10 15:38:07 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrRequestNotReadyYet 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrUnsignedHeaders 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMissingDateHeader 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidQuerySignatureAlgo 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidQueryParams 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-03 18:19:04 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrBucketAlreadyOwnedByYou 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-04 15:39:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidDuration 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-09 05:53:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrBucketAlreadyExists 
							 
						 
					
						
							
								
									
										
										
										
											2017-08-23 07:53:35 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMetadataTooLarge 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-13 07:14:41 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrUnsupportedMetadata 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 04:54:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMaximumExpires 
							 
						 
					
						
							
								
									
										
										
										
											2017-12-20 16:00:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrSlowDown 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-19 06:39:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidPrefixMarker 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 12:07:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrBadRequest 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-12 12:38:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrKeyTooLongError 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidBucketObjectLockConfiguration 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-14 05:03:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectLockConfigurationNotFound 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-09 07:36:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectLockConfigurationNotAllowed 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-19 10:45:48 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchObjectLockConfiguration 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectLocked 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRetentionDate 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrPastObjectLockRetainDate 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnknownWORMModeDirective 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrObjectLockInvalidHeaders 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-21 00:45:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidTagDirective 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// Add new error codes here.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-04-21 08:23:23 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-08-04 07:55:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// SSE-S3 related API errors
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidEncryptionMethod 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// Server-Side-Encryption (with Customer provided key) related API errors.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInsecureSSECustomerRequest 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-02 03:37:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrSSEMultipartEncrypted 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrSSEEncryptedObject 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidEncryptionParameters 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidSSECustomerAlgorithm 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidSSECustomerKey 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSSECustomerKey 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSSECustomerKeyMD5 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrSSECustomerKeyMD5Mismatch 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidSSECustomerParameters 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrIncompatibleEncryptionMethod 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrKMSNotConfigured 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrKMSAuthFailure 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-07 22:40:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoAccessKey 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidToken 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-07-24 13:51:12 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// Bucket notification related errors.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEventNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrARNNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrRegionNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrOverlappingFilterNotification 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-26 08:53:55 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrFilterNameInvalid 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrFilterNamePrefix 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrFilterNameSuffix 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-19 03:00:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrFilterValueInvalid 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-24 09:42:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrOverlappingConfigs 
							 
						 
					
						
							
								
									
										
										
										
											2017-08-24 06:58:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrUnsupportedNotification 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-24 13:51:12 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:04:50 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// S3 extended errors.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrContentSHA256Mismatch 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-21 03:40:20 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:04:50 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// Add new extended error codes here.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-10 02:39:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// MinIO extended errors.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrReadQuorum 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrWriteQuorum 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-21 04:06:53 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrParentIsObject 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:36:16 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrStorageFull 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrRequestBodyParse 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:36:16 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrObjectExistsAsDirectory 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-10 08:11:08 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidObjectName 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-12 12:38:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidObjectNamePrefixSlash 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-25 09:13:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidResourceName 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-11 09:47:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrServerNotInitialized 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-01 02:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrOperationTimedOut 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-25 03:43:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrOperationMaxedOut 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-15 08:56:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidRequest 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-10 02:39:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// MinIO storage class error codes
 
							 
						 
					
						
							
								
									
										
										
										
											2017-12-27 12:36:16 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidStorageClass 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-29 05:14:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrBackendDown 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:04:50 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// Add new extended error codes here.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Please open a https://github.com/minio/minio/issues before adding
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// new error codes here.
 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-18 06:25:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMalformedJSON 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:48:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminNoSuchUser 
							 
						 
					
						
							
								
									
										
										
										
											2019-08-03 05:25:00 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminNoSuchGroup 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminGroupNotEmpty 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:48:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminNoSuchPolicy 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminInvalidArgument 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-18 06:25:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminInvalidAccessKey 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminInvalidSecretKey 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-28 03:40:27 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigNoQuorum 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 15:06:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigTooLarge 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminConfigBadJSON 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-10 05:00:01 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigDuplicateKeys 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-08 02:16:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminCredentialsMismatch 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-01 11:33:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInsecureClientRequest 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectTampered 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-15 18:30:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 02:21:41 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrHealNotImplemented 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrHealNoSuchProcess 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealInvalidClientToken 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealMissingBucket 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealAlreadyRunning 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealOverlappingPaths 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-26 03:35:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrIncorrectContinuationToken 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-15 18:30:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// S3 Select Errors
 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-15 18:30:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrEmptyRequestBody 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedFunction 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidExpressionType 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrBusy 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnauthorizedAccess 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrExpressionTooLong 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrIllegalSQLFunctionArgument 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidKeyPath 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCompressionFormat 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidFileHeaderInfo 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidJSONType 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidQuoteFields 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequestParameter 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidDataType 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidTextEncoding 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidDataSource 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidTableAlias 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingRequiredParameter 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrObjectSerializationConflict 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedSQLOperation 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedSQLStructure 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedSyntax 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedRangeHeader 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidChar 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidOperator 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidLiteral 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidIONLiteral 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedDatePart 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedKeyword 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedTokenType 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpected2TokenTypes 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedNumber 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedRightParenBuiltinFunctionCall 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedTypeName 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedWhenClause 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedToken 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedLiteralsGroupBy 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedMember 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedSelect 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedCase 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedCaseClause 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedAlias 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedSyntax 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnknownOperator 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseMissingIdentAfterAt 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedOperator 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedTerm 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedToken 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedKeyword 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedExpression 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedLeftParenAfterCast 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedLeftParenValueConstructor 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedLeftParenBuiltinFunctionCall 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedArgumentDelimiter 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseCastArity 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseInvalidTypeParam 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseEmptySelect 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseSelectMissingFrom 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedIdentForGroupName 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedIdentForAlias 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedCallWithStar 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseNonUnaryAgregateFunctionCall 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseMalformedJoin 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedIdentForAt 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseAsteriskIsNotAloneInSelectList 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseCannotMixSqbAndWildcardInSelectList 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseInvalidContextForWildcardInSelectList 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrIncorrectSQLFunctionArgumentType 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrValueParseFailure 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidArguments 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrIntegerOverflow 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLikeInvalidInputs 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrCastFailed 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCast 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPattern 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorTimestampFormatPatternDuplicateFields 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorUnterminatedTimestampFormatPatternToken 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPatternToken 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPatternSymbol 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorBindingDoesNotExist 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingHeaders 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-17 02:27:48 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidColumnIndex 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 23:03:18 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigNotificationTargetsFailed 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-28 01:34:37 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminProfilerNotEnabled 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-28 11:36:17 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidDecompressedSize 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-08 09:25:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAddUserInvalidArgument 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-25 03:10:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminAccountNotEligible 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrServiceAccountNotFound 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-23 05:20:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrPostPolicyConditionInvalidFormat 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-23 07:28:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								)  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								type  errorCodeMap  map [ APIErrorCode ] APIError  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-04-15 02:28:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								func  ( e  errorCodeMap )  ToAPIErrWithErr ( errCode  APIErrorCode ,  err  error )  APIError  {  
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									apiErr ,  ok  :=  e [ errCode ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ! ok  { 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-15 02:28:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  e [ ErrInternalError ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  err  !=  nil  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr . Description  =  fmt . Sprintf ( "%s (%s)" ,  apiErr . Description ,  err ) 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  apiErr 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-04-15 02:28:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								func  ( e  errorCodeMap )  ToAPIErr ( errCode  APIErrorCode )  APIError  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  e . ToAPIErrWithErr ( errCode ,  nil ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// error code to APIError structure, these fields carry respective
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// descriptions for all the error responses.
  
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								var  errorCodes  =  errorCodeMap {  
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidCopyDest :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-27 19:04:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-12-27 08:29:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "This copy request is illegal because it is trying to copy an object to itself without changing the object's metadata, storage class, website redirect location or encryption attributes." , 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-27 19:04:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidCopySource :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-27 19:04:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Copy Source must mention the source bucket and key: sourcebucket/sourcekey." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-12-27 08:29:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidMetadataDirective :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Unknown metadata directive." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-12-27 12:36:16 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidStorageClass :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidStorageClass" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid storage class." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequestBody :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-27 19:04:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Body shouldn't be set for this request." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidMaxUploads :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:06:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Argument max-uploads must be an integer between 0 and 2147483647" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidMaxKeys :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:06:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Argument maxKeys must be an integer between 0 and 2147483647" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-24 14:14:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidEncodingMethod :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid Encoding Method specified in Request" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidMaxParts :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:06:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Argument max-parts must be an integer between 0 and 2147483647" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidPartNumberMarker :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 05:48:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Argument partNumberMarker must be an integer." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 08:22:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidPolicyDocument :  { 
							 
						 
					
						
							
								
									
										
										
											
												accessPolicy: Implement Put, Get, Delete access policy.
This patch implements Get,Put,Delete bucket policies
Supporting - http://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html
Currently supports following actions.
   "*":                             true,
   "s3:*":                          true,
   "s3:GetObject":                  true,
   "s3:ListBucket":                 true,
   "s3:PutObject":                  true,
   "s3:CreateBucket":               true,
   "s3:GetBucketLocation":          true,
   "s3:DeleteBucket":               true,
   "s3:DeleteObject":               true,
   "s3:AbortMultipartUpload":       true,
   "s3:ListBucketMultipartUploads": true,
   "s3:ListMultipartUploadParts":   true,
following conditions for "StringEquals" and "StringNotEquals"
   "s3:prefix", "s3:max-keys"
											 
										 
										
											2016-02-04 08:46:56 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidPolicyDocument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The content of the form does not meet the conditions specified in the policy document." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrAccessDenied :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 05:48:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Access Denied." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrBadDigest :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "BadDigest" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-06 08:43:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The Content-Md5 you specified did not match what we received." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrEntityTooSmall :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "EntityTooSmall" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your proposed upload is smaller than the minimum allowed object size." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrEntityTooLarge :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "EntityTooLarge" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your proposed upload exceeds the maximum allowed object size." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-22 16:23:54 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrPolicyTooLarge :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "PolicyTooLarge" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Policy exceeds the maximum allowed document size." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrIncompleteBody :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "IncompleteBody" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 05:48:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "You did not provide the number of bytes specified by the Content-Length HTTP header." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInternalError :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InternalError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "We encountered an internal error, please try again." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusInternalServerError , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidAccessKeyID :  { 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-24 11:07:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Code :            "InvalidAccessKeyId" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The access key ID you provided does not exist in our records." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidBucketName :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidBucketName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified bucket is not valid." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidDigest :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidDigest" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-06 08:43:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The Content-Md5 you specified is not valid." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidRange :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRange" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:06:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The requested range is not satisfiable" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusRequestedRangeNotSatisfiable , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedXML :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MalformedXML" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The XML you provided was not well-formed or did not validate against our published schema." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMissingContentLength :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MissingContentLength" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "You must provide the Content-Length HTTP header." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusLengthRequired , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMissingContentMD5 :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-06 08:43:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MissingContentMD5" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Missing required header for this request: Content-Md5." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-16 14:07:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMissingSecurityHeader :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "MissingSecurityHeader" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your request was missing a required header" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMissingRequestBodyError :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MissingRequestBodyError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Request body is empty." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusLengthRequired , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNoSuchBucket :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchBucket" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:06:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The specified bucket does not exist" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNoSuchBucketPolicy :  { 
							 
						 
					
						
							
								
									
										
										
											
												accessPolicy: Implement Put, Get, Delete access policy.
This patch implements Get,Put,Delete bucket policies
Supporting - http://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html
Currently supports following actions.
   "*":                             true,
   "s3:*":                          true,
   "s3:GetObject":                  true,
   "s3:ListBucket":                 true,
   "s3:PutObject":                  true,
   "s3:CreateBucket":               true,
   "s3:GetBucketLocation":          true,
   "s3:DeleteBucket":               true,
   "s3:DeleteObject":               true,
   "s3:AbortMultipartUpload":       true,
   "s3:ListBucketMultipartUploads": true,
   "s3:ListMultipartUploadParts":   true,
following conditions for "StringEquals" and "StringNotEquals"
   "s3:prefix", "s3:max-keys"
											 
										 
										
											2016-02-04 08:46:56 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchBucketPolicy" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 17:18:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "The bucket policy does not exist" , 
							 
						 
					
						
							
								
									
										
										
											
												accessPolicy: Implement Put, Get, Delete access policy.
This patch implements Get,Put,Delete bucket policies
Supporting - http://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html
Currently supports following actions.
   "*":                             true,
   "s3:*":                          true,
   "s3:GetObject":                  true,
   "s3:ListBucket":                 true,
   "s3:PutObject":                  true,
   "s3:CreateBucket":               true,
   "s3:GetBucketLocation":          true,
   "s3:DeleteBucket":               true,
   "s3:DeleteObject":               true,
   "s3:AbortMultipartUpload":       true,
   "s3:ListBucketMultipartUploads": true,
   "s3:ListMultipartUploadParts":   true,
following conditions for "StringEquals" and "StringNotEquals"
   "s3:prefix", "s3:max-keys"
											 
										 
										
											2016-02-04 08:46:56 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-20 04:20:33 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchBucketLifecycle :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchBucketLifecycle" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The bucket lifecycle configuration does not exist" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-08 19:16:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchLifecycleConfiguration :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchLifecycleConfiguration" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The lifecycle configuration does not exist" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-05 17:42:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchBucketSSEConfig :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ServerSideEncryptionConfigurationNotFoundError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The server side encryption configuration was not found" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNoSuchKey :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchKey" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified key does not exist." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNoSuchUpload :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchUpload" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-23 08:05:40 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The specified multipart upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
									
										
										
										
											2018-12-13 03:43:44 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrNoSuchVersion :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchVersion" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Indicates that the version ID specified in the request does not match an existing version." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrNotImplemented :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "NotImplemented" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:06:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "A header you provided implies functionality that is not implemented" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotImplemented , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-28 16:18:18 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrPreconditionFailed :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "PreconditionFailed" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-10 03:13:40 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "At least one of the pre-conditions you specified did not hold" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-28 16:18:18 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusPreconditionFailed , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrRequestTimeTooSkewed :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "RequestTimeTooSkewed" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The difference between the request time and the server's time is too large." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrSignatureDoesNotMatch :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "SignatureDoesNotMatch" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-22 03:10:18 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The request signature we calculated does not match the signature you provided. Check your key and signing method." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-06 13:07:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMethodNotAllowed :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-27 18:54:49 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MethodNotAllowed" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified method is not allowed against this resource." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusMethodNotAllowed , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidPart :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-08 13:43:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidPart" , 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-18 02:20:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "One or more of the specified parts could not be found.  The part may not have been uploaded, or the specified entity tag may not match the part's entity tag." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-08 13:43:19 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidPartOrder :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-08 17:02:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidPartOrder" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The list of parts was not in ascending order. The parts list must be specified in order by part number." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-10-21 07:09:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidObjectState :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidObjectState" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The operation is not valid for the current state of the object." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrAuthorizationHeaderMalformed :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 05:48:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationHeaderMalformed" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-24 05:39:57 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "The authorization header is malformed; the region is wrong; expecting 'us-east-1'." , 
							 
						 
					
						
							
								
									
										
										
										
											2015-09-19 05:48:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedPOSTRequest :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-02 14:51:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MalformedPOSTRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The body of your POST request is not well-formed multipart/form-data." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-10 07:38:40 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-10 04:37:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrPOSTFileRequired :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "POST requires exactly one file upload per request." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrSignatureVersionNotSupported :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-10 07:38:40 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-02 14:51:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrBucketNotEmpty :  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-17 02:26:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "BucketNotEmpty" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 17:18:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "The bucket you tried to delete is not empty" , 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-17 02:26:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-12 08:33:01 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrBucketAlreadyExists :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "BucketAlreadyExists" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "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." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrAllAccessDisabled :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-17 10:50:36 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "AllAccessDisabled" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "All access to this bucket has been disabled." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedPolicy :  { 
							 
						 
					
						
							
								
									
										
										
											
												accessPolicy: Implement Put, Get, Delete access policy.
This patch implements Get,Put,Delete bucket policies
Supporting - http://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html
Currently supports following actions.
   "*":                             true,
   "s3:*":                          true,
   "s3:GetObject":                  true,
   "s3:ListBucket":                 true,
   "s3:PutObject":                  true,
   "s3:CreateBucket":               true,
   "s3:GetBucketLocation":          true,
   "s3:DeleteBucket":               true,
   "s3:DeleteObject":               true,
   "s3:AbortMultipartUpload":       true,
   "s3:ListBucketMultipartUploads": true,
   "s3:ListMultipartUploadParts":   true,
following conditions for "StringEquals" and "StringNotEquals"
   "s3:prefix", "s3:max-keys"
											 
										 
										
											2016-02-04 08:46:56 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "MalformedPolicy" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Policy has invalid resource." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingFields :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "MissingFields" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Missing fields in request." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingCredTag :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Missing Credential field for this request." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrCredMalformed :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Error parsing the X-Amz-Credential parameter; the Credential is mal-formed; expecting \"<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request\"." , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedDate :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "MalformedDate" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid date format header, expected to be in ISO8601, RFC1123 or RFC1123Z time format." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrMalformedPresignedDate :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "X-Amz-Date must be in the ISO8601 Long Format \"yyyyMMdd'T'HHmmss'Z'\"" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// right Description:    "Error parsing the X-Amz-Credential parameter; incorrect date format \"%s\". This date in the credential must be in the format \"yyyyMMdd\".",
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Need changes to make sure variable messages can be constructed.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedCredentialDate :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Error parsing the X-Amz-Credential parameter; incorrect date format \"%s\". This date in the credential must be in the format \"yyyyMMdd\"." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// right Description:    "Error parsing the X-Amz-Credential parameter; the region 'us-east-' is wrong; expecting 'us-east-1'".
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Need changes to make sure variable messages can be constructed.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedCredentialRegion :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Error parsing the X-Amz-Credential parameter; the region is wrong;" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidRegion :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRegion" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Region does not match." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// right Description:   "Error parsing the X-Amz-Credential parameter; incorrect service \"s4\". This endpoint belongs to \"s3\".".
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Need changes to make sure variable messages can be constructed.
 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-19 08:25:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidServiceS3 :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Error parsing the Credential/X-Amz-Credential parameter; incorrect service. This endpoint belongs to \"s3\"." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidServiceSTS :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Error parsing the Credential parameter; incorrect service. This endpoint belongs to \"sts\"." , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Description:   "Error parsing the X-Amz-Credential parameter; incorrect terminal "aws4_reque". This endpoint uses "aws4_request".
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Need changes to make sure variable messages can be constructed.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequestVersion :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Error parsing the X-Amz-Credential parameter; incorrect terminal. This endpoint uses \"aws4_request\"." , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSignTag :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Signature header missing Signature field." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSignHeadersTag :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Signature header missing SignedHeaders field." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMalformedExpires :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "X-Amz-Expires should be a number" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrNegativeExpires :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "X-Amz-Expires must be non-negative" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAuthHeaderEmpty :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Authorization header is invalid -- one and only one ' ' (space) required." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingDateHeader :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "AWS authentication requires a valid Date or x-amz-date header" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidQuerySignatureAlgo :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "X-Amz-Algorithm only supports \"AWS4-HMAC-SHA256\"." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrExpiredPresignRequest :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Request has expired" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 17:18:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-10 15:38:07 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrRequestNotReadyYet :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Request is not valid yet" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-12-20 16:00:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrSlowDown :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "SlowDown" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Please reduce your request" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusServiceUnavailable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-19 06:39:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidPrefixMarker :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidPrefixMarker" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid marker prefix combination" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 12:07:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrBadRequest :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "BadRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "400 BadRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-19 06:39:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-12 12:38:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrKeyTooLongError :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "KeyTooLongError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your key is too long" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-19 06:39:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-21 14:10:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// FIXME: Actual XML error response also contains the header which missed in list of signed header parameters.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-10 00:13:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrUnsignedHeaders :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "There were headers present in the request which were not signed" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-31 11:04:51 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidQueryParams :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Query-string authentication version 4 requires the X-Amz-Algorithm, X-Amz-Credential, X-Amz-Signature, X-Amz-Date, X-Amz-SignedHeaders, and X-Amz-Expires parameters." , 
							 
						 
					
						
							
								
									
										
										
											
												accessPolicy: Implement Put, Get, Delete access policy.
This patch implements Get,Put,Delete bucket policies
Supporting - http://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html
Currently supports following actions.
   "*":                             true,
   "s3:*":                          true,
   "s3:GetObject":                  true,
   "s3:ListBucket":                 true,
   "s3:PutObject":                  true,
   "s3:CreateBucket":               true,
   "s3:GetBucketLocation":          true,
   "s3:DeleteBucket":               true,
   "s3:DeleteObject":               true,
   "s3:AbortMultipartUpload":       true,
   "s3:ListBucketMultipartUploads": true,
   "s3:ListMultipartUploadParts":   true,
following conditions for "StringEquals" and "StringNotEquals"
   "s3:prefix", "s3:max-keys"
											 
										 
										
											2016-02-04 08:46:56 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-03 18:19:04 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrBucketAlreadyOwnedByYou :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "BucketAlreadyOwnedByYou" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your previous request to create the named bucket succeeded and you already own it." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-04 15:39:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidDuration :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidDuration" , 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-02 03:17:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Duration provided in the request is invalid." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-04 15:39:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidBucketObjectLockConfiguration :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Bucket is missing ObjectLockConfiguration" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-14 05:03:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectLockConfigurationNotFound :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ObjectLockConfigurationNotFoundError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Object Lock configuration does not exist for this bucket" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-09 07:36:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectLockConfigurationNotAllowed :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidBucketState" , 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-14 05:03:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Object Lock configuration cannot be enabled on existing buckets" , 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-09 07:36:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-19 10:45:48 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoSuchObjectLockConfiguration :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "NoSuchObjectLockConfiguration" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified object does not have a ObjectLock configuration" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectLocked :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Object is WORM protected and cannot be overwritten" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRetentionDate :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Date must be provided in ISO 8601 format" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrPastObjectLockRetainDate :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "the retain until date must be in the future" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnknownWORMModeDirective :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "unknown wormMode directive" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrObjectLockInvalidHeaders :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "x-amz-object-lock-retain-until-date and x-amz-object-lock-mode must both be supplied" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-24 13:51:12 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									/// Bucket notification related errors.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEventNotification :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A specified event is not supported for notifications." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrARNNotification :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A specified destination ARN does not exist or is not well-formed. Verify the destination ARN." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrRegionNotification :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A specified destination is in a different region than the bucket. You must use a destination that resides in the same region as the bucket." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrOverlappingFilterNotification :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "An object key name filtering rule defined with overlapping prefixes, overlapping suffixes, or overlapping combinations of prefixes and suffixes for the same event types." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-26 08:53:55 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrFilterNameInvalid :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "filter rule name must be either prefix or suffix" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrFilterNamePrefix :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Cannot specify more than one prefix rule in a filter." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrFilterNameSuffix :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Cannot specify more than one suffix rule in a filter." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-19 03:00:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrFilterValueInvalid :  { 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-26 08:53:55 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-19 03:00:01 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										Description :     "Size of filter rule value cannot exceed 1024 bytes in UTF-8 representation" , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-26 08:53:55 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-24 09:42:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrOverlappingConfigs :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Configurations overlap. Configurations on the same bucket cannot share a common event type." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-08-24 06:58:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrUnsupportedNotification :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnsupportedNotification" , 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-10 02:39:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "MinIO server does not support Topic or Cloud Function based notifications." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-08-24 06:58:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-04 08:32:04 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidCopyPartRange :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The x-amz-copy-source-range value must be of the form bytes=first-last where first and last are the zero-based offsets of the first and last bytes to copy" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCopyPartRangeSource :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Range specified is not valid for source object" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMetadataTooLarge :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your metadata headers exceed the maximum allowed metadata size." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-21 00:45:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidTagDirective :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Unknown tag directive." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-04 07:55:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidEncryptionMethod :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The encryption method specified is not supported" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInsecureSSECustomerRequest :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Requests specifying Server Side Encryption with Customer provided keys must be made over a secure connection." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-02 03:37:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrSSEMultipartEncrypted :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The multipart upload initiate requested encryption. Subsequent part requests must include the appropriate encryption parameters." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrSSEEncryptedObject :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "The object was stored using a form of Server Side Encryption. The correct parameters must be provided to retrieve the object." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidEncryptionParameters :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The encryption parameters are not applicable to this object." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidSSECustomerAlgorithm :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Requests specifying Server Side Encryption with Customer provided keys must provide a valid encryption algorithm." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidSSECustomerKey :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "The secret key was invalid for the specified algorithm." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSSECustomerKey :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Requests specifying Server Side Encryption with Customer provided keys must provide an appropriate secret key." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingSSECustomerKeyMD5 :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Requests specifying Server Side Encryption with Customer provided keys must provide the client calculated MD5 of the secret key." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrSSECustomerKeyMD5Mismatch :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "The calculated MD5 hash of the key did not match the hash that was provided." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidSSECustomerParameters :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The provided encryption parameters did not match the ones used originally." , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrIncompatibleEncryptionMethod :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Server side encryption specified with both SSE-C and SSE-S3 headers" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrKMSNotConfigured :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Server side encryption specified but KMS is not configured" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrKMSAuthFailure :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Server side encryption specified but KMS authorization failed" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-07 22:40:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrNoAccessKey :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AccessDenied" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "No AWSAccessKey was presented" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidTokenId" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The security token included in the request is invalid" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-24 13:51:12 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:04:50 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									/// S3 extensions.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrContentSHA256Mismatch :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XAmzContentSHA256Mismatch" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The provided 'x-amz-content-sha256' header does not match what was computed." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-10 02:39:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									/// MinIO extensions.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:36:16 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrStorageFull :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioStorageFull" , 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-04 04:53:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Storage backend has reached its minimum free disk threshold. Please delete a few objects to proceed." , 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-04 00:40:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusInsufficientStorage , 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:36:16 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-21 04:06:53 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrParentIsObject :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioParentIsObject" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Object-prefix is already an object, please choose a different object-prefix name." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrRequestBodyParse :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioRequestBodyParse" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The request body failed to parse." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:36:16 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrObjectExistsAsDirectory :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioObjectExistsAsDirectory" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Object name already exists as a directory." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-10 08:11:08 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									ErrInvalidObjectName :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInvalidObjectName" , 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-25 09:13:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "Object name contains unsupported characters." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-12 12:38:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidObjectNamePrefixSlash :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInvalidObjectName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Object name contains a leading slash." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-25 09:13:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidResourceName :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInvalidResourceName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Resource name contains bad components such as \"..\" or \".\"." , 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-10 08:11:08 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-11 09:47:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrServerNotInitialized :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioServerNotInitialized" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Server not initialized, please try again." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusServiceUnavailable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMalformedJSON :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioMalformedJSON" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The JSON you provided was not well-formed or did not validate against our published format." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:48:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminNoSuchUser :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminNoSuchUser" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified user does not exist." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-08-03 05:25:00 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminNoSuchGroup :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminNoSuchGroup" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified group does not exist." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminGroupNotEmpty :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminGroupNotEmpty" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified group is not empty - cannot remove it." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:48:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminNoSuchPolicy :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminNoSuchPolicy" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The canned policy does not exist." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminInvalidArgument :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminInvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid arguments specified." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-18 06:25:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminInvalidAccessKey :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminInvalidAccessKey" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The access key is invalid." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminInvalidSecretKey :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminInvalidSecretKey" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The secret key is invalid." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-28 03:40:27 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigNoQuorum :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminConfigNoQuorum" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Configuration update failed because server quorum was not met" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusServiceUnavailable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 15:06:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigTooLarge :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :  "XMinioAdminConfigTooLarge" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :  fmt . Sprintf ( "Configuration data provided exceeds the allowed maximum of %d bytes" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-10 05:00:01 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											maxEConfigJSONSize ) , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 15:06:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminConfigBadJSON :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminConfigBadJSON" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-10 05:00:01 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "JSON configuration provided is of incorrect format" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrAdminConfigDuplicateKeys :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminConfigDuplicateKeys" , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 15:06:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "JSON configuration provided has objects with duplicate keys" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 23:03:18 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminConfigNotificationTargetsFailed :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminNotificationTargetsTestFailed" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Configuration update failed due an unsuccessful attempt to connect to one or more notification servers" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-28 01:34:37 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminProfilerNotEnabled :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminProfilerNotEnabled" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Unable to perform the requested operation because profiling is not enabled" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-08 02:16:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminCredentialsMismatch :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioAdminCredentialsMismatch" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Credentials in config mismatch with server environment variables" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusServiceUnavailable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-01 11:33:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInsecureClientRequest :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInsecureClientRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Cannot respond to plain-text request from TLS-encrypted server" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-01 02:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrOperationTimedOut :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioServerTimedOut" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A timeout occurred while trying to lock a resource" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusRequestTimeout , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-25 03:43:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrOperationMaxedOut :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioServerTimedOut" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A timeout exceeded while waiting to proceed with the request" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusRequestTimeout , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-13 07:14:41 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrUnsupportedMetadata :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Your metadata headers are not supported." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrObjectTampered :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioObjectTampered" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     errObjectTampered . Error ( ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusPartialContent , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 04:54:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrMaximumExpires :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "AuthorizationQueryParametersError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "X-Amz-Expires must be less than a week (in seconds); that is, the given X-Amz-Expires must be less than 604800 seconds" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-15 18:30:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-15 08:56:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// Generic Invalid-Request error. Should be used for response errors only for unlikely
 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-06 06:04:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// corner case errors for which introducing new APIErrorCode is not worth it. LogIf()
 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-15 08:56:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// should be used to log the error at the source of the error for debugging purposes.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequest :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid Request" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 06:54:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrHealNotImplemented :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioHealNotImplemented" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "This server does not implement heal functionality." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealNoSuchProcess :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioHealNoSuchProcess" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "No such heal process is running on the server" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealInvalidClientToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioHealInvalidClientToken" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Client token mismatch" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealMissingBucket :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioHealMissingBucket" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A heal start request with a non-empty object-prefix parameter requires a bucket to be specified." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealAlreadyRunning :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioHealAlreadyRunning" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrHealOverlappingPaths :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioHealOverlappingPaths" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-29 05:14:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrBackendDown :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioBackendDown" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Object storage backend is unreachable" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusServiceUnavailable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-26 03:35:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrIncorrectContinuationToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The continuation token provided is incorrect" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-15 18:30:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									//S3 Select API Errors
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEmptyRequestBody :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EmptyRequestBody" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Request body cannot be empty." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedFunction :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnsupportedFunction" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Encountered an unsupported SQL function." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidDataSource :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidDataSource" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid data source type. Only CSV and JSON are supported at this time." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidExpressionType :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidExpressionType" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The ExpressionType is invalid. Only SQL expressions are supported at this time." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrBusy :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "Busy" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The service is unavailable. Please retry." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusServiceUnavailable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnauthorizedAccess :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnauthorizedAccess" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "You are not authorized to perform this operation" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusUnauthorized , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrExpressionTooLong :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ExpressionTooLong" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression is too long: The maximum byte-length for the SQL expression is 256 KB." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrIllegalSQLFunctionArgument :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "IllegalSqlFunctionArgument" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Illegal argument was used in the SQL function." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidKeyPath :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidKeyPath" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Key path in the SQL expression is invalid." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCompressionFormat :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidCompressionFormat" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The file is not in a supported compression format. Only GZIP is supported at this time." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidFileHeaderInfo :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidFileHeaderInfo" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The FileHeaderInfo is invalid. Only NONE, USE, and IGNORE are supported." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidJSONType :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidJsonType" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The JsonType is invalid. Only DOCUMENT and LINES are supported at this time." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidQuoteFields :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidQuoteFields" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The QuoteFields is invalid. Only ALWAYS and ASNEEDED are supported." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidRequestParameter :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidRequestParameter" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The value of a parameter in SelectRequest element is invalid. Check the service API documentation and try again." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidDataType :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidDataType" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid data type." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidTextEncoding :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidTextEncoding" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid encoding type. Only UTF-8 encoding is supported at this time." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidTableAlias :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidTableAlias" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid table alias." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingRequiredParameter :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "MissingRequiredParameter" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SelectRequest entity is missing a required parameter. Check the service documentation and try again." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrObjectSerializationConflict :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ObjectSerializationConflict" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SelectRequest entity can only contain one of CSV or JSON. Check the service documentation and try again." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedSQLOperation :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnsupportedSqlOperation" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Encountered an unsupported SQL operation." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedSQLStructure :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnsupportedSqlStructure" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Encountered an unsupported SQL structure. Check the SQL Reference." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedSyntax :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnsupportedSyntax" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Encountered invalid syntax." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrUnsupportedRangeHeader :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "UnsupportedRangeHeader" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Range header is not supported for this operation." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidChar :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "LexerInvalidChar" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid character." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidOperator :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "LexerInvalidOperator" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid literal." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidLiteral :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "LexerInvalidLiteral" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid operator." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLexerInvalidIONLiteral :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "LexerInvalidIONLiteral" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid operator." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedDatePart :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedDatePart" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected date part in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedKeyword :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedKeyword" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected keyword in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedTokenType :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedTokenType" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected token in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpected2TokenTypes :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpected2TokenTypes" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected token in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedNumber" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected number in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedRightParenBuiltinFunctionCall :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedRightParenBuiltinFunctionCall" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected right parenthesis character in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedTypeName :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedTypeName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected type name in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedWhenClause :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedWhenClause" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected WHEN clause in the SQL expression. CASE is not supported." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedToken" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported token." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedLiteralsGroupBy :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedLiteralsGroupBy" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported use of GROUP BY." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedMember :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedMember" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported use of MEMBER." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedSelect :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedSelect" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported use of SELECT." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedCase :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedCase" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported use of CASE." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedCaseClause :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedCaseClause" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported use of CASE." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedAlias :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedAlias" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unsupported use of ALIAS." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedSyntax :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedSyntax" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains unsupported syntax." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnknownOperator :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnknownOperator" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid operator." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseMissingIdentAfterAt :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseMissingIdentAfterAt" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected identifier after the @ symbol in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedOperator :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnexpectedOperator" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unexpected operator." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedTerm :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnexpectedTerm" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unexpected term." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnexpectedToken" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unexpected token." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnexpectedKeyword :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnexpectedKeyword" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an unexpected keyword." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedExpression :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedExpression" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedLeftParenAfterCast :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedLeftParenAfterCast" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find expected the left parenthesis in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedLeftParenValueConstructor :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedLeftParenValueConstructor" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find expected the left parenthesis in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedLeftParenBuiltinFunctionCall :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedLeftParenBuiltinFunctionCall" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected left parenthesis in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedArgumentDelimiter :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedArgumentDelimiter" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected argument delimiter in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseCastArity :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseCastArity" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression CAST has incorrect arity." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseInvalidTypeParam :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseInvalidTypeParam" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an invalid parameter value." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseEmptySelect :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseEmptySelect" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The SQL expression contains an empty SELECT." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseSelectMissingFrom :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseSelectMissingFrom" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "GROUP is not supported in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedIdentForGroupName :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedIdentForGroupName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "GROUP is not supported in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedIdentForAlias :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedIdentForAlias" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected identifier for the alias in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseUnsupportedCallWithStar :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseUnsupportedCallWithStar" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Only COUNT with (*) as a parameter is supported in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseNonUnaryAgregateFunctionCall :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseNonUnaryAgregateFunctionCall" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Only one argument is supported for aggregate functions in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseMalformedJoin :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseMalformedJoin" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "JOIN is not supported in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseExpectedIdentForAt :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseExpectedIdentForAt" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Did not find the expected identifier for AT name in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseAsteriskIsNotAloneInSelectList :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseAsteriskIsNotAloneInSelectList" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Other expressions are not allowed in the SELECT list when '*' is used without dot notation in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseCannotMixSqbAndWildcardInSelectList :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseCannotMixSqbAndWildcardInSelectList" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Cannot mix [] and * in the same expression in a SELECT list in SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrParseInvalidContextForWildcardInSelectList :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ParseInvalidContextForWildcardInSelectList" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid use of * in SELECT list in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrIncorrectSQLFunctionArgumentType :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "IncorrectSqlFunctionArgumentType" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Incorrect type of arguments in function call in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrValueParseFailure :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ValueParseFailure" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp parse failure in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidArguments :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorInvalidArguments" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Incorrect number of arguments in the function call in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrIntegerOverflow :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "IntegerOverflow" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Int overflow or underflow in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrLikeInvalidInputs :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "LikeInvalidInputs" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid argument given to the LIKE clause in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrCastFailed :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "CastFailed" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Attempt to convert from one data type to another using CAST failed in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrInvalidCast :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidCast" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Attempt to convert from one data type to another using CAST failed in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPattern :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorInvalidTimestampFormatPattern" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern requires additional fields in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorInvalidTimestampFormatPatternSymbolForParsing" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern contains a valid format symbol that cannot be applied to time stamp parsing in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorTimestampFormatPatternDuplicateFields :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorTimestampFormatPatternDuplicateFields" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern contains multiple format specifiers representing the time stamp field in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorUnterminatedTimestampFormatPatternToken" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern contains unterminated token in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorUnterminatedTimestampFormatPatternToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorInvalidTimestampFormatPatternToken" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern contains an invalid token in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPatternToken :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorInvalidTimestampFormatPatternToken" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern contains an invalid token in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorInvalidTimestampFormatPatternSymbol :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "EvaluatorInvalidTimestampFormatPatternSymbol" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Time stamp format pattern contains an invalid symbol in the SQL expression." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrEvaluatorBindingDoesNotExist :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "ErrEvaluatorBindingDoesNotExist" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "A column name or a path provided does not exist in the SQL expression" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ErrMissingHeaders :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "MissingHeaders" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Some headers in the query are missing from the file. Check the file and try again." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-17 02:27:48 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidColumnIndex :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "InvalidColumnIndex" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The column index is invalid. Please check the service documentation and try again." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-28 11:36:17 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrInvalidDecompressedSize :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInvalidDecompressedSize" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The data provided is unfit for decompression" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-08 09:25:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAddUserInvalidArgument :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInvalidIAMCredentials" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "User is not allowed to be same as admin access key" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-25 03:10:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrAdminAccountNotEligible :  { 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-15 02:28:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Code :            "XMinioInvalidIAMCredentials" , 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-25 03:10:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Description :     "The administrator key is not eligible for this operation" , 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-15 02:28:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusConflict , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-25 03:10:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrServiceAccountNotFound :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "XMinioInvalidIAMCredentials" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "The specified service account is not found" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusNotFound , 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-18 01:36:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-23 05:20:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ErrPostPolicyConditionInvalidFormat :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Code :            "PostPolicyInvalidKeyName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Description :     "Invalid according to Policy: Policy Condition failed" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HTTPStatusCode :  http . StatusForbidden , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} , 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									// Add your error structure here.
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// toAPIErrorCode - Converts embedded errors. Convenience
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// function written to handle all cases where we have known types of
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// errors returned by underlying layers.
  
						 
					
						
							
								
									
										
										
										
											2018-11-13 03:07:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								func  toAPIErrorCode ( ctx  context . Context ,  err  error )  ( apiErr  APIErrorCode )  {  
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  err  ==  nil  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  ErrNone 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// Verify if the underlying error is signature mismatch.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:04:50 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									switch  err  { 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:48:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errInvalidArgument : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAdminInvalidArgument 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  errNoSuchUser : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAdminNoSuchUser 
							 
						 
					
						
							
								
									
										
										
										
											2019-08-03 05:25:00 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errNoSuchGroup : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAdminNoSuchGroup 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  errGroupNotEmpty : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAdminGroupNotEmpty 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:48:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errNoSuchPolicy : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAdminNoSuchPolicy 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-05 16:04:50 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  errSignatureMismatch : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrSignatureDoesNotMatch 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-03 03:48:51 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errInvalidRange : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidRange 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-31 07:44:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errDataTooLarge : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEntityTooLarge 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  errDataTooSmall : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEntityTooSmall 
							 
						 
					
						
							
								
									
										
										
										
											2019-08-21 11:43:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errAuthentication : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAccessDenied 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-01 02:54:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  auth . ErrInvalidAccessKeyLength : 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-08 04:51:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrAdminInvalidAccessKey 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-01 02:54:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  auth . ErrInvalidSecretKeyLength : 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-08 04:51:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrAdminInvalidSecretKey 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// SSE errors
 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-17 03:27:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errInvalidEncryptionParameters : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidEncryptionParameters 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-04 07:55:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrInvalidEncryptionMethod : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidEncryptionMethod 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrInvalidCustomerAlgorithm : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidSSECustomerAlgorithm 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrMissingCustomerKey : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrMissingSSECustomerKey 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrMissingCustomerKeyMD5 : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrMissingSSECustomerKeyMD5 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrCustomerKeyMD5Mismatch : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrSSECustomerKeyMD5Mismatch 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errObjectTampered : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrObjectTampered 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errEncryptedObject : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrSSEEncryptedObject 
							 
						 
					
						
							
								
									
										
										
										
											2018-04-07 05:15:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errInvalidSSEParameters : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidSSECustomerParameters 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-07 03:31:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrInvalidCustomerKey ,  crypto . ErrSecretKeyMismatch : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrAccessDenied  // no access without correct key
 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-18 03:52:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  crypto . ErrIncompatibleEncryptionMethod : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrIncompatibleEncryptionMethod 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  errKMSNotConfigured : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrKMSNotConfigured 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  crypto . ErrKMSAuthLogin : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrKMSAuthFailure 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-12 05:11:04 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  context . Canceled ,  context . DeadlineExceeded : 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrOperationTimedOut 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-30 01:21:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  errDiskNotFound : 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-02 22:09:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrSlowDown 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-17 07:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  objectlock . ErrInvalidRetentionDate : 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidRetentionDate 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-17 07:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  objectlock . ErrPastObjectLockRetainDate : 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrPastObjectLockRetainDate 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-17 07:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  objectlock . ErrUnknownWORMModeDirective : 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrUnknownWORMModeDirective 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-17 07:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  objectlock . ErrObjectLockInvalidHeaders : 
							 
						 
					
						
							
								
									
										
										
										
											2019-11-21 05:18:09 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrObjectLockInvalidHeaders 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-17 07:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  objectlock . ErrMalformedXML : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrMalformedXML 
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-28 11:36:17 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									// Compression errors
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									switch  err  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  errInvalidDecompressedSize : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidDecompressedSize 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-02-03 10:18:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  apiErr  !=  ErrNone  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										// If there was a match in the above switch case.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  apiErr 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// etcd specific errors, a key is always a bucket for us return
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									// ErrNoSuchBucket in such a case.
 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-13 05:12:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  err  ==  dns . ErrNoEntriesFound  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  ErrNoSuchBucket 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-08 07:18:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									switch  err . ( type )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  StorageFull : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrStorageFull 
							 
						 
					
						
							
								
									
										
										
										
											2017-10-22 13:30:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  hash . BadDigest : 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrBadDigest 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-06 09:49:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  AllAccessDisabled : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAllAccessDisabled 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  IncompleteBody : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrIncompleteBody 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:36:16 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  ObjectExistsAsDirectory : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrObjectExistsAsDirectory 
							 
						 
					
						
							
								
									
										
										
										
											2016-10-21 07:09:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  PrefixAccessDenied : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrAccessDenied 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-21 04:06:53 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  ParentIsObject : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrParentIsObject 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  BucketNameInvalid : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidBucketName 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  BucketNotFound : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchBucket 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-28 02:26:00 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  BucketAlreadyOwnedByYou : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrBucketAlreadyOwnedByYou 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  BucketNotEmpty : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrBucketNotEmpty 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-09 05:53:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  BucketAlreadyExists : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrBucketAlreadyExists 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  BucketExists : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrBucketAlreadyOwnedByYou 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  ObjectNotFound : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchKey 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-28 07:44:45 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  ObjectAlreadyExists : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrMethodNotAllowed 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  ObjectNameInvalid : 
							 
						 
					
						
							
								
									
										
										
										
											2016-07-10 08:11:08 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidObjectName 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-12 12:38:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  ObjectNamePrefixAsSlash : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidObjectNamePrefixSlash 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  InvalidUploadID : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchUpload 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  InvalidPart : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrInvalidPart 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  InsufficientWriteQuorum : 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-30 01:21:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrSlowDown 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  InsufficientReadQuorum : 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-30 01:21:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrSlowDown 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-15 16:44:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  UnsupportedDelimiter : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNotImplemented 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  InvalidMarkerPrefixCombination : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNotImplemented 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  InvalidUploadIDKeyCombination : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNotImplemented 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  MalformedUploadID : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchUpload 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 03:06:05 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									case  PartTooSmall : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEntityTooSmall 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-11 07:52:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  SignatureDoesNotMatch : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrSignatureDoesNotMatch 
							 
						 
					
						
							
								
									
										
										
										
											2017-10-22 13:30:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  hash . SHA256Mismatch : 
							 
						 
					
						
							
								
									
										
										
										
											2016-10-03 06:51:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrContentSHA256Mismatch 
							 
						 
					
						
							
								
									
										
										
										
											2016-10-23 00:05:01 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  ObjectTooLarge : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEntityTooLarge 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-21 20:15:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  ObjectTooSmall : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEntityTooSmall 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 03:21:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  NotImplemented : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNotImplemented 
							 
						 
					
						
							
								
									
										
										
										
											2017-07-13 07:42:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  PartTooBig : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEntityTooLarge 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-13 07:14:41 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  UnsupportedMetadata : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrUnsupportedMetadata 
							 
						 
					
						
							
								
									
										
										
										
											2017-10-28 07:14:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  BucketPolicyNotFound : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchBucketPolicy 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-20 04:20:33 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  BucketLifecycleNotFound : 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-08 19:16:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchLifecycleConfiguration 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-05 17:42:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  BucketSSEConfigNotFound : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrNoSuchBucketSSEConfig 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-16 04:03:41 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  * event . ErrInvalidEventName : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrEventNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrInvalidARN : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrARNNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrARNNotFound : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrARNNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrUnknownRegion : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrRegionNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrInvalidFilterName : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrFilterNameInvalid 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrFilterNamePrefix : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrFilterNamePrefix 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrFilterNameSuffix : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrFilterNameSuffix 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrInvalidFilterValue : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrFilterValueInvalid 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrDuplicateEventName : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrOverlappingConfigs 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrDuplicateQueueConfiguration : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrOverlappingFilterNotification 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									case  * event . ErrUnsupportedConfiguration : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrUnsupportedNotification 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-12 05:11:04 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  OperationTimedOut : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrOperationTimedOut 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-29 05:14:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  BackendDown : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrBackendDown 
							 
						 
					
						
							
								
									
										
										
										
											2019-07-12 12:38:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									case  ObjectNameTooLong : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										apiErr  =  ErrKeyTooLongError 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									default : 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-08 08:11:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										var  ie ,  iw  int 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										// This work-around is to handle the issue golang/go#30648
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										if  _ ,  ferr  :=  fmt . Fscanf ( strings . NewReader ( err . Error ( ) ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											"request declared a Content-Length of %d but only wrote %d bytes" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											& ie ,  & iw ) ;  ferr  !=  nil  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  ErrInternalError 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// Make sure to log the errors which we cannot translate
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// to a meaningful S3 API errors. This is added to aid in
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// debugging unexpected/unhandled errors.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											logger . LogIf ( ctx ,  err ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										}  else  if  ie  >  iw  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  ErrIncompleteBody 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										}  else  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  ErrInternalError 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// Make sure to log the errors which we cannot translate
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// to a meaningful S3 API errors. This is added to aid in
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// debugging unexpected/unhandled errors.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											logger . LogIf ( ctx ,  err ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										} 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-22 05:51:05 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-06 11:24:29 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									return  apiErr 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								var  noError  =  APIError { }  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// toAPIError - Converts embedded errors. Convenience
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// function written to handle all cases where we have known types of
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// errors returned by underlying layers.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								func  toAPIError ( ctx  context . Context ,  err  error )  APIError  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  err  ==  nil  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  noError 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									var  apiErr  =  errorCodes . ToAPIErr ( toAPIErrorCode ( ctx ,  err ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  apiErr . Code  ==  "InternalError"  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										// If we see an internal error try to interpret
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										// any underlying errors if possible depending on
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										// their internal error types. This code is only
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										// useful with gateway implementations.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										switch  e  :=  err . ( type )  { 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-16 14:07:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  * xml . SyntaxError : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Code :  "MalformedXML" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :  fmt . Sprintf ( "%s (%s)" ,  errorCodes [ ErrMalformedXML ] . Description , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													e . Error ( ) ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  errorCodes [ ErrMalformedXML ] . HTTPStatusCode , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-12 11:38:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  url . EscapeError : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Code :  "XMinioInvalidObjectName" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :  fmt . Sprintf ( "%s (%s)" ,  errorCodes [ ErrInvalidObjectName ] . Description , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													e . Error ( ) ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-06 15:50:10 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  lifecycle . Error : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Code :            "InvalidRequest" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :     e . Error ( ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-21 00:45:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  tagging . Error : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-12 09:42:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Code :            e . Code ( ) , 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-21 00:45:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Description :     e . Error ( ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-04 03:28:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  policy . Error : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Code :            "MalformedPolicy" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :     e . Error ( ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-22 16:12:51 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  crypto . Error : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-07 08:15:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Code :            "XMinIOEncryptionError" , 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-22 16:12:51 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Description :     e . Error ( ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  http . StatusBadRequest , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  minio . ErrorResponse : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Code :            e . Code , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :     e . Message , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  e . StatusCode , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										case  * googleapi . Error : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Code :            "XGCSInternalError" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :     e . Message , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  e . Code , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// GCS may send multiple errors, just pick the first one
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// since S3 only sends one Error XML response.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											if  len ( e . Errors )  >=  1  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												apiErr . Code  =  e . Errors [ 0 ] . Reason 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-03 01:32:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										case  azblob . StorageError : 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											apiErr  =  APIError { 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-03 01:32:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Code :            string ( e . ServiceCode ( ) ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Description :     e . Error ( ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												HTTPStatusCode :  e . Response ( ) . StatusCode , 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											// Add more Gateway SDKs here if any in future.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  apiErr 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 18:24:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// getAPIError provides API Error for input API error code.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								func  getAPIError ( code  APIErrorCode )  APIError  {  
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  apiErr ,  ok  :=  errorCodes [ code ] ;  ok  { 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-19 07:46:35 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										return  apiErr 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-12 17:25:52 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									return  errorCodes . ToAPIErr ( ErrInternalError ) 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-24 08:46:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// getErrorResponse gets in standard error and resource value and
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// provides a encodable populated response values
  
						 
					
						
							
								
									
										
										
										
											2019-02-14 08:07:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								func  getAPIErrorResponse ( ctx  context . Context ,  err  APIError ,  resource ,  requestID ,  hostID  string )  APIErrorResponse  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									reqInfo  :=  logger . GetReqInfo ( ctx ) 
							 
						 
					
						
							
								
									
										
										
										
											2017-01-19 04:24:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									return  APIErrorResponse { 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-14 08:07:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Code :        err . Code , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Message :     err . Description , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										BucketName :  reqInfo . BucketName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Key :         reqInfo . ObjectName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										Resource :    resource , 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-23 13:59:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Region :      globalServerRegion , 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-14 08:07:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										RequestID :   requestID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										HostID :      hostID , 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-12 14:00:45 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 19:23:15 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}