* store S3 storage class in extended atrributes #7961 * canonical * remove issue reference --------- Co-authored-by: Robert Schade <robert.schade@uni-paderborn.de> Co-authored-by: Chris Lu <chris.lu@gmail.com>
This commit is contained in:
@@ -141,6 +141,7 @@ const (
|
||||
|
||||
// Bucket encryption errors
|
||||
ErrNoSuchBucketEncryptionConfiguration
|
||||
ErrInvalidStorageClass
|
||||
)
|
||||
|
||||
// Error message constants for checksum validation
|
||||
@@ -588,6 +589,11 @@ var errorCodeResponse = map[ErrorCode]APIError{
|
||||
Description: "The server side encryption configuration was not found.",
|
||||
HTTPStatusCode: http.StatusNotFound,
|
||||
},
|
||||
ErrInvalidStorageClass: {
|
||||
Code: "InvalidStorageClass",
|
||||
Description: "The storage class you specified is not valid",
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
},
|
||||
}
|
||||
|
||||
// GetAPIError provides API Error for input API error code.
|
||||
|
||||
Reference in New Issue
Block a user