store S3 storage class in extended atrributes #7961 (#7962)

* 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:
Robert Schade
2026-01-04 20:24:43 +01:00
committed by GitHub
parent c909724bf1
commit de3df211d7
4 changed files with 47 additions and 5 deletions

View File

@@ -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.