Fixes #5665
Showing the changes to cmd/api-errors.go (1 of 7 files). Show all
Unified · Split
| @@ -141,6 +141,7 @@ const ( · 140 unmodified lines | |||
| 141 | ErrInvalidPrefixMarker | 141 | ErrInvalidPrefixMarker |
| 142 | ErrBadRequest | 142 | ErrBadRequest |
| 143 | ErrKeyTooLongError | 143 | ErrKeyTooLongError |
| 144 | ErrInvalidAPIVersion | ||
| 144 | // Add new error codes here. | 145 | // Add new error codes here. |
| 145 | 146 | ||
| 146 | // SSE-S3 related API errors | 147 | // SSE-S3 related API errors |
| @@ -1502,6 +1503,11 @@ var errorCodes = errorCodeMap{ · 1355 unmodified lines | |||
| 1502 | Description: "Invalid according to Policy: Policy Condition failed", | 1503 | Description: "Invalid according to Policy: Policy Condition failed", |
| 1503 | HTTPStatusCode: http.StatusForbidden, | 1504 | HTTPStatusCode: http.StatusForbidden, |
| 1504 | }, | 1505 | }, |
| 1506 | ErrInvalidAPIVersion: { | ||
| 1507 | Code: "ErrInvalidAPIVersion", | ||
| 1508 | Description: "Invalid version found in the request", | ||
| 1509 | HTTPStatusCode: http.StatusNotFound, | ||
| 1510 | }, | ||
| 1505 | // Add your error structure here. | 1511 | // Add your error structure here. |
| 1506 | } | 1512 | } |
| 1507 | 1513 | ||