diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-06-08 01:45:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-08 01:45:40 -0700 |
| commit | 4a5135961f71fa3b9a3b9b9267cf20e92372a8ec (patch) | |
| tree | 2eda39edfd87123da43e143d64f87744606d023b /weed/s3api/s3err/s3api_errors.go | |
| parent | 8a1166c02145b8752a8c5f3d30a3451ff26f2865 (diff) | |
| parent | 49f058da85c046381555622c889b08420ac14cbb (diff) | |
| download | seaweedfs-4a5135961f71fa3b9a3b9b9267cf20e92372a8ec.tar.xz seaweedfs-4a5135961f71fa3b9a3b9b9267cf20e92372a8ec.zip | |
Merge pull request #3154 from kmlebedev/s3_test_invalid_range
Diffstat (limited to 'weed/s3api/s3err/s3api_errors.go')
| -rw-r--r-- | weed/s3api/s3err/s3api_errors.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/s3api/s3err/s3api_errors.go b/weed/s3api/s3err/s3api_errors.go index 52803f398..2e93f49cb 100644 --- a/weed/s3api/s3err/s3api_errors.go +++ b/weed/s3api/s3err/s3api_errors.go @@ -64,6 +64,7 @@ const ( ErrInvalidMaxDeleteObjects ErrInvalidPartNumberMarker ErrInvalidPart + ErrInvalidRange ErrInternalError ErrInvalidCopyDest ErrInvalidCopySource @@ -370,6 +371,11 @@ var errorCodeResponse = map[ErrorCode]APIError{ Description: "Invalid Request", HTTPStatusCode: http.StatusBadRequest, }, + ErrInvalidRange: { + Code: "InvalidRange", + Description: "The requested range is not satisfiable", + HTTPStatusCode: http.StatusRequestedRangeNotSatisfiable, + }, ErrAuthNotSetup: { Code: "InvalidRequest", Description: "Signed request requires setting up SeaweedFS S3 authentication", |
