From 3e6bd89fa242bc5157b47c7a95cb67e0aa7bf024 Mon Sep 17 00:00:00 2001 From: niksis02 Date: Mon, 14 Apr 2025 18:43:11 +0400 Subject: [PATCH] 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`. --- s3err/s3err.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3err/s3err.go b/s3err/s3err.go index 2e195ca..82f8b99 100644 --- a/s3err/s3err.go +++ b/s3err/s3err.go @@ -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: {