forked from TrueCloudLab/frostfs-s3-gw
[#719] Improve lock error handling
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
d6d6a09f0d
commit
b3d96e6460
2 changed files with 24 additions and 6 deletions
|
@ -877,13 +877,13 @@ var errorCodes = errorCodeMap{
|
|||
ErrPastObjectLockRetainDate: {
|
||||
ErrCode: ErrPastObjectLockRetainDate,
|
||||
Code: "InvalidRequest",
|
||||
Description: "the retain until date must be in the future",
|
||||
Description: "The retain until date must be in the future",
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
},
|
||||
ErrUnknownWORMModeDirective: {
|
||||
ErrCode: ErrUnknownWORMModeDirective,
|
||||
Code: "InvalidRequest",
|
||||
Description: "unknown wormMode directive",
|
||||
Description: "Unknown wormMode directive",
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
},
|
||||
ErrObjectLockInvalidHeaders: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue