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 | ErrBadRequest | 151 | ErrBadRequest |
| 152 | ErrKeyTooLongError | 152 | ErrKeyTooLongError |
| 153 | ErrInvalidBucketObjectLockConfiguration | 153 | ErrInvalidBucketObjectLockConfiguration |
| 154 | ErrObjectLockConfigurationNotFound | ||
| 154 | ErrObjectLockConfigurationNotAllowed | 155 | ErrObjectLockConfigurationNotAllowed |
| 155 | ErrNoSuchObjectLockConfiguration | 156 | ErrNoSuchObjectLockConfiguration |
| 156 | ErrObjectLocked | 157 | ErrObjectLocked |
| @@ -765,9 +766,14 @@ var errorCodes = errorCodeMap{ · 608 unmodified lines | |||
| 765 | Description: "Bucket is missing ObjectLockConfiguration", | 766 | Description: "Bucket is missing ObjectLockConfiguration", |
| 766 | HTTPStatusCode: http.StatusBadRequest, | 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 | ErrObjectLockConfigurationNotAllowed: { | 774 | ErrObjectLockConfigurationNotAllowed: { |
| 769 | Code: "InvalidBucketState", | 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 | HTTPStatusCode: http.StatusConflict, | 777 | HTTPStatusCode: http.StatusConflict, |
| 772 | }, | 778 | }, |
| 773 | ErrNoSuchObjectLockConfiguration: { | 779 | ErrNoSuchObjectLockConfiguration: { |