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