forked from TrueCloudLab/frostfs-s3-gw
[#122] Add delete versioned object
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
3130784ee6
commit
d5aef7566f
7 changed files with 189 additions and 86 deletions
|
@ -66,6 +66,7 @@ const (
|
|||
ErrNoSuchKey
|
||||
ErrNoSuchUpload
|
||||
ErrNoSuchVersion
|
||||
ErrInvalidVersion
|
||||
ErrNotImplemented
|
||||
ErrPreconditionFailed
|
||||
ErrNotModified
|
||||
|
@ -529,6 +530,12 @@ var errorCodes = errorCodeMap{
|
|||
Description: "Indicates that the version ID specified in the request does not match an existing version.",
|
||||
HTTPStatusCode: http.StatusNotFound,
|
||||
},
|
||||
ErrInvalidVersion: {
|
||||
ErrCode: ErrInvalidVersion,
|
||||
Code: "InvalidArgument",
|
||||
Description: "Invalid version id specified",
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
},
|
||||
ErrNotImplemented: {
|
||||
ErrCode: ErrNotImplemented,
|
||||
Code: "NotImplemented",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue