Merge pull request #1409 from versity/sis/bucket-acl-ownership-error-description

fix: fixes the InvalidBucketAclWithObjectOwnership error code.
This commit is contained in:
Ben McClelland
2025-07-23 15:24:59 -07:00
committed by GitHub

View File

@@ -646,8 +646,8 @@ var errorCodeResponse = map[ErrorCode]APIError{
HTTPStatusCode: http.StatusForbidden,
},
ErrInvalidBucketAclWithObjectOwnership: {
Code: "ErrInvalidBucketAclWithObjectOwnership",
Description: "Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting.",
Code: "InvalidBucketAclWithObjectOwnership",
Description: "Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting",
HTTPStatusCode: http.StatusBadRequest,
},
ErrBothCannedAndHeaderGrants: {