implement PubObjectRetention and WORM

This commit is contained in:
chrislu committed 2025-07-12 02:15:14 -07:00
1 parent 49d43003e1
commit d86bf967f1
17 files changed
+2932 -26

No files matched your search

+6
View File
@@ -110,6 +110,7 @@ const (
OwnershipControlsNotFoundError
ErrNoSuchTagSet
ErrNoSuchObjectLockConfiguration
)
// Error message constants for checksum validation
@@ -197,6 +198,11 @@ var errorCodeResponse = map[ErrorCode]APIError{
Description: "The TagSet does not exist",
HTTPStatusCode: http.StatusNotFound,
},
ErrNoSuchObjectLockConfiguration: {
Code: "ObjectLockConfigurationNotFoundError",
Description: "The specified object does not have an ObjectLock configuration",
HTTPStatusCode: http.StatusNotFound,
},
ErrNoSuchCORSConfiguration: {
Code: "NoSuchCORSConfiguration",
Description: "The CORS configuration does not exist",