|
|
@ -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", |
|
|
|