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
141141 ErrInvalidPrefixMarker
142142 ErrBadRequest
143143 ErrKeyTooLongError
144+ ErrInvalidAPIVersion
144145 // Add new error codes here.
145146
146147 // SSE-S3 related API errors
@@ -1502,6 +1503,11 @@ var errorCodes = errorCodeMap{ · 1355 unmodified lines
15021503 Description: "Invalid according to Policy: Policy Condition failed",
15031504 HTTPStatusCode: http.StatusForbidden,
15041505 },
1506+ ErrInvalidAPIVersion: {
1507+ Code: "ErrInvalidAPIVersion",
1508+ Description: "Invalid version found in the request",
1509+ HTTPStatusCode: http.StatusNotFound,
1510+ },
15051511 // Add your error structure here.
15061512 }
15071513

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