fix: Fixes the InvalidTag error Code and Description

For invalid bucket/object tags the error `Code` should be `InvalidTag` and `Message` - `The TagValue you have provided is invalid`.
This commit is contained in:
niksis02
2025-04-14 18:43:11 +04:00
parent 5d7a68cabd
commit 3e6bd89fa2

View File

@@ -309,8 +309,8 @@ var errorCodeResponse = map[ErrorCode]APIError{
HTTPStatusCode: http.StatusBadRequest,
},
ErrInvalidTag: {
Code: "InvalidArgument",
Description: "The Tag value you have provided is invalid",
Code: "InvalidTag",
Description: "The TagValue you have provided is invalid",
HTTPStatusCode: http.StatusBadRequest,
},
ErrBucketTaggingLimited: {