diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-21 10:39:02 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-21 10:39:02 -0700 |
| commit | 8480008a9a64ed8b922c786c70bc38e1f0353478 (patch) | |
| tree | 44529e24b43f2d5691b8e3f6b3028a82da8b6d07 /weed/s3api/s3api_errors.go | |
| parent | 80d80daf64370d6a3d37afa6ce06258335ac856f (diff) | |
| download | seaweedfs-8480008a9a64ed8b922c786c70bc38e1f0353478.tar.xz seaweedfs-8480008a9a64ed8b922c786c70bc38e1f0353478.zip | |
add s3 upload, and removing mono and multi part upload analyzer
removing mono and multi part upload analyzer, which were used just to determine the file name
Diffstat (limited to 'weed/s3api/s3api_errors.go')
| -rw-r--r-- | weed/s3api/s3api_errors.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/weed/s3api/s3api_errors.go b/weed/s3api/s3api_errors.go index 8af024700..10b48c2c8 100644 --- a/weed/s3api/s3api_errors.go +++ b/weed/s3api/s3api_errors.go @@ -31,8 +31,9 @@ const ( ErrBucketNotEmpty ErrBucketAlreadyExists ErrBucketAlreadyOwnedByYou - ErrInvalidBucketName ErrNoSuchBucket + ErrInvalidBucketName + ErrInvalidDigest ErrInternalError ) @@ -64,6 +65,11 @@ var errorCodeResponse = map[ErrorCode]APIError{ Description: "The specified bucket is not valid.", HTTPStatusCode: http.StatusBadRequest, }, + ErrInvalidDigest: { + Code: "InvalidDigest", + Description: "The Content-Md5 you specified is not valid.", + HTTPStatusCode: http.StatusBadRequest, + }, ErrNoSuchBucket: { Code: "NoSuchBucket", Description: "The specified bucket does not exist", |
