From f6d8525d1d8c1faf9a0826472bfcef0592ba3a93 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 12 Sep 2018 00:46:12 -0700 Subject: working S3 multipart uploads --- weed/s3api/s3api_errors.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'weed/s3api/s3api_errors.go') 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", -- cgit v1.2.3