aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3err/s3api_errors.go
diff options
context:
space:
mode:
authorustuzhanin <55892859+ustuzhanin@users.noreply.github.com>2020-10-04 19:46:45 +0500
committerGitHub <noreply@github.com>2020-10-04 19:46:45 +0500
commitb3dd0ba446649d3a3fe56dba547585bf18b039b7 (patch)
treefc22104e5b6b0ddd3c41ab02a72b2428130c2363 /weed/s3api/s3err/s3api_errors.go
parent3e0a79ef050dba9e5347d20537ef562cc4b30b62 (diff)
parent8c8b8e2835801992ecd75349281637ed8ecb88cd (diff)
downloadseaweedfs-b3dd0ba446649d3a3fe56dba547585bf18b039b7.tar.xz
seaweedfs-b3dd0ba446649d3a3fe56dba547585bf18b039b7.zip
Merge pull request #2 from chrislusf/master
update from upstream
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 cccef0227..f95652afb 100644
--- a/weed/s3api/s3err/s3api_errors.go
+++ b/weed/s3api/s3err/s3api_errors.go
@@ -61,6 +61,7 @@ const (
ErrInternalError
ErrInvalidCopyDest
ErrInvalidCopySource
+ ErrInvalidTag
ErrAuthHeaderEmpty
ErrSignatureVersionNotSupported
ErrMalformedPOSTRequest
@@ -188,6 +189,11 @@ var errorCodeResponse = map[ErrorCode]APIError{
Description: "Copy Source must mention the source bucket and key: sourcebucket/sourcekey.",
HTTPStatusCode: http.StatusBadRequest,
},
+ ErrInvalidTag: {
+ Code: "InvalidArgument",
+ Description: "The Tag value you have provided is invalid",
+ HTTPStatusCode: http.StatusBadRequest,
+ },
ErrMalformedXML: {
Code: "MalformedXML",
Description: "The XML you provided was not well-formed or did not validate against our published schema.",