aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_errors.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-09-12 00:46:12 -0700
committerChris Lu <chris.lu@gmail.com>2018-09-12 00:46:12 -0700
commitf6d8525d1d8c1faf9a0826472bfcef0592ba3a93 (patch)
tree8856e342215ca37a943c97e09528ead83814e472 /weed/s3api/s3api_errors.go
parent98d9aadd37500e31b98e91cbf1b4d4050d90e762 (diff)
downloadseaweedfs-f6d8525d1d8c1faf9a0826472bfcef0592ba3a93.tar.xz
seaweedfs-f6d8525d1d8c1faf9a0826472bfcef0592ba3a93.zip
working S3 multipart uploads
Diffstat (limited to 'weed/s3api/s3api_errors.go')
-rw-r--r--weed/s3api/s3api_errors.go13
1 files changed, 1 insertions, 12 deletions
diff --git a/weed/s3api/s3api_errors.go b/weed/s3api/s3api_errors.go
index e9975dbb6..7ba55ed28 100644
--- a/weed/s3api/s3api_errors.go
+++ b/weed/s3api/s3api_errors.go
@@ -40,9 +40,7 @@ const (
ErrInvalidMaxParts
ErrInvalidPartNumberMarker
ErrInvalidPart
- ErrInvalidPartOrder
ErrInternalError
- ErrMalformedXML
ErrNotImplemented
)
@@ -114,21 +112,12 @@ var errorCodeResponse = map[ErrorCode]APIError{
Description: "We encountered an internal error, please try again.",
HTTPStatusCode: http.StatusInternalServerError,
},
- ErrMalformedXML: {
- Code: "MalformedXML",
- Description: "The XML you provided was not well-formed or did not validate against our published schema.",
- HTTPStatusCode: http.StatusBadRequest,
- },
+
ErrInvalidPart: {
Code: "InvalidPart",
Description: "One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.",
HTTPStatusCode: http.StatusBadRequest,
},
- ErrInvalidPartOrder: {
- Code: "InvalidPartOrder",
- Description: "The list of parts was not in ascending order. The parts list must be specified in order by part number.",
- HTTPStatusCode: http.StatusBadRequest,
- },
ErrNotImplemented: {
Code: "NotImplemented",
Description: "A header you provided implies functionality that is not implemented",