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:
Ben McClelland
2026-01-09 15:32:47 -08:00
committed by GitHub
+2 -2
View File
@@ -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: {