aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3err/s3api_errors.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-10-04 22:59:14 +0500
committerGitHub <noreply@github.com>2024-10-04 10:59:14 -0700
commit44b275879bf8a67af35c0b3c6e5049d95b3df3df (patch)
treeb23622d0a5976e5c83b6e76d8962ca897a7dbf5d /weed/s3api/s3err/s3api_errors.go
parenta3a8f6217eeb2d35dc02a5a45f8254989ee22147 (diff)
downloadseaweedfs-44b275879bf8a67af35c0b3c6e5049d95b3df3df.tar.xz
seaweedfs-44b275879bf8a67af35c0b3c6e5049d95b3df3df.zip
[s3] add {Get,Put,Delete}BucketTagging and PublicAccessBlock Handlers (#6088)
* add {Get,Put,Delete}BucketTagging Handlers * s3 add skip bucket PublicAccessBlock handlers --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Diffstat (limited to 'weed/s3api/s3err/s3api_errors.go')
-rw-r--r--weed/s3api/s3err/s3api_errors.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/s3api/s3err/s3api_errors.go b/weed/s3api/s3err/s3api_errors.go
index 0348d4ddc..f41c3620c 100644
--- a/weed/s3api/s3err/s3api_errors.go
+++ b/weed/s3api/s3err/s3api_errors.go
@@ -109,6 +109,7 @@ const (
ErrRequestBytesExceed
OwnershipControlsNotFoundError
+ ErrNoSuchTagSet
)
// error code to APIError structure, these fields carry respective
@@ -184,6 +185,11 @@ var errorCodeResponse = map[ErrorCode]APIError{
Description: "The bucket policy does not exist",
HTTPStatusCode: http.StatusNotFound,
},
+ ErrNoSuchTagSet: {
+ Code: "NoSuchTagSet",
+ Description: "The TagSet does not exist",
+ HTTPStatusCode: http.StatusNotFound,
+ },
ErrNoSuchCORSConfiguration: {
Code: "NoSuchCORSConfiguration",
Description: "The CORS configuration does not exist",