|
@ -91,6 +91,7 @@ const ( |
|
|
ErrRequestNotReadyYet |
|
|
ErrRequestNotReadyYet |
|
|
ErrMissingDateHeader |
|
|
ErrMissingDateHeader |
|
|
ErrInvalidRequest |
|
|
ErrInvalidRequest |
|
|
|
|
|
ErrAuthNotSetup |
|
|
ErrNotImplemented |
|
|
ErrNotImplemented |
|
|
|
|
|
|
|
|
ErrExistingObjectIsDirectory |
|
|
ErrExistingObjectIsDirectory |
|
@ -341,6 +342,11 @@ var errorCodeResponse = map[ErrorCode]APIError{ |
|
|
Description: "Invalid Request", |
|
|
Description: "Invalid Request", |
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
}, |
|
|
}, |
|
|
|
|
|
ErrAuthNotSetup : { |
|
|
|
|
|
Code: "InvalidRequest", |
|
|
|
|
|
Description: "Signed request requires setting up SeaweedFS S3 authentication", |
|
|
|
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
|
|
|
}, |
|
|
ErrNotImplemented: { |
|
|
ErrNotImplemented: { |
|
|
Code: "NotImplemented", |
|
|
Code: "NotImplemented", |
|
|
Description: "A header you provided implies functionality that is not implemented", |
|
|
Description: "A header you provided implies functionality that is not implemented", |
|
|