mirror of
https://github.com/versity/versitygw.git
synced 2026-08-18 21:26:27 +00:00
Merge pull request #1743 from versity/sis/obj-lock-retention-period-err
fix: fixes the InvalidRetentionPeriod error code and message
This commit is contained in:
+2
-2
@@ -619,8 +619,8 @@ var errorCodeResponse = map[ErrorCode]APIError{
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
},
|
||||
ErrObjectLockInvalidRetentionPeriod: {
|
||||
Code: "InvalidRetentionPeriod",
|
||||
Description: "the retention days/years must be positive integer.",
|
||||
Code: "InvalidArgument",
|
||||
Description: "Default retention period must be a positive integer value.",
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
},
|
||||
ErrInvalidLegalHoldStatus: {
|
||||
|
||||
Reference in New Issue
Block a user