History

Add more context to rpc version mismatch errors (#8271)

Fixes #5665

Praveen raj Mani committed 7 years ago

Commit e48005d1 parent 83066f97 files · +36 −4Browse files

Showing the changes to cmd/api-errors.go (1 of 7 files). Show all

Unified · Split

cmd/api-errors.go+6−0
@@ -141,6 +141,7 @@ const ( · 140 unmodified lines
141 ErrInvalidPrefixMarker141 ErrInvalidPrefixMarker
142 ErrBadRequest142 ErrBadRequest
143 ErrKeyTooLongError143 ErrKeyTooLongError
144 ErrInvalidAPIVersion
144 // Add new error codes here.145 // Add new error codes here.
145 146
146 // SSE-S3 related API errors147 // 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t