Showing the changes to cmd/api-errors.go (1 of 6 files). Show all
Unified · Split
| @@ -151,6 +151,7 @@ const ( · 150 unmodified lines | ||
| 151 | 151 | ErrBadRequest |
| 152 | 152 | ErrKeyTooLongError |
| 153 | 153 | ErrInvalidBucketObjectLockConfiguration |
| 154 | + ErrObjectLockConfigurationNotFound | |
| 154 | 155 | ErrObjectLockConfigurationNotAllowed |
| 155 | 156 | ErrNoSuchObjectLockConfiguration |
| 156 | 157 | ErrObjectLocked |
| @@ -765,9 +766,14 @@ var errorCodes = errorCodeMap{ · 608 unmodified lines | ||
| 765 | 766 | Description: "Bucket is missing ObjectLockConfiguration", |
| 766 | 767 | HTTPStatusCode: http.StatusBadRequest, |
| 767 | 768 | }, |
| 769 | + ErrObjectLockConfigurationNotFound: { | |
| 770 | + Code: "ObjectLockConfigurationNotFoundError", | |
| 771 | + Description: "Object Lock configuration does not exist for this bucket", | |
| 772 | + HTTPStatusCode: http.StatusNotFound, | |
| 773 | + }, | |
| 768 | 774 | ErrObjectLockConfigurationNotAllowed: { |
| 769 | 775 | Code: "InvalidBucketState", |
| 770 | − Description: "Object Lock configuration cannot be enabled on existing buckets.", | |
| 776 | + Description: "Object Lock configuration cannot be enabled on existing buckets", | |
| 771 | 777 | HTTPStatusCode: http.StatusConflict, |
| 772 | 778 | }, |
| 773 | 779 | ErrNoSuchObjectLockConfiguration: { |