|
|
|
@ -153,6 +153,7 @@ const ( |
|
|
|
|
ErrAdminInvalidAccessKey |
|
|
|
|
ErrAdminInvalidSecretKey |
|
|
|
|
ErrAdminConfigNoQuorum |
|
|
|
|
ErrAdminCredentialsMismatch |
|
|
|
|
ErrInsecureClientRequest |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -633,6 +634,11 @@ var errorCodeResponse = map[APIErrorCode]APIError{ |
|
|
|
|
Description: "Configuration update failed because server quorum was not met", |
|
|
|
|
HTTPStatusCode: http.StatusServiceUnavailable, |
|
|
|
|
}, |
|
|
|
|
ErrAdminCredentialsMismatch: { |
|
|
|
|
Code: "XMinioAdminCredentialsMismatch", |
|
|
|
|
Description: "Credentials in config mismatch with server environment variables", |
|
|
|
|
HTTPStatusCode: http.StatusServiceUnavailable, |
|
|
|
|
}, |
|
|
|
|
ErrInsecureClientRequest: { |
|
|
|
|
Code: "XMinioInsecureClientRequest", |
|
|
|
|
Description: "Cannot respond to plain-text request from TLS-encrypted server", |
|
|
|
|