mirror of
https://github.com/minio/minio.git
synced 2025-11-23 11:07:50 -05:00
A small logical change in messaging and logging
This commit is contained in:
@@ -46,8 +46,8 @@ const (
|
||||
RequestTimeTooSkewed = iota
|
||||
BandWidthQuotaExceeded
|
||||
BandWidthInsufficientToProceed
|
||||
SlowDown
|
||||
ConnectionLimitExceeded
|
||||
SlowDown
|
||||
)
|
||||
|
||||
// Golang http doesn't implement these
|
||||
@@ -77,12 +77,17 @@ func writeErrorHeaders(w http.ResponseWriter) {
|
||||
var errorCodeResponse = map[int]Error{
|
||||
BandWidthQuotaExceeded: {
|
||||
Code: "BandwidthQuotaExceeded",
|
||||
Description: "Bandwidth Quota Exceeded",
|
||||
Description: "Bandwidth Quota Exceeded.",
|
||||
HTTPStatusCode: StatusTooManyRequests,
|
||||
},
|
||||
BandWidthInsufficientToProceed: {
|
||||
Code: "BandwidthQuotaWillBeExceeded",
|
||||
Description: "Bandwidth quota will be exceeded with this request",
|
||||
Description: "Bandwidth quota will be exceeded with this request.",
|
||||
HTTPStatusCode: StatusTooManyRequests,
|
||||
},
|
||||
ConnectionLimitExceeded: {
|
||||
Code: "ConnectionLimitExceeded",
|
||||
Description: "Connections Limit Exceeded.",
|
||||
HTTPStatusCode: StatusTooManyRequests,
|
||||
},
|
||||
SlowDown: {
|
||||
@@ -90,11 +95,6 @@ var errorCodeResponse = map[int]Error{
|
||||
Description: "Reduce your request rate.",
|
||||
HTTPStatusCode: StatusTooManyRequests,
|
||||
},
|
||||
ConnectionLimitExceeded: {
|
||||
Code: "ConnectionLimit",
|
||||
Description: "Connection Limit Met",
|
||||
HTTPStatusCode: StatusTooManyRequests,
|
||||
},
|
||||
}
|
||||
|
||||
// Write error response headers
|
||||
|
||||
Reference in New Issue
Block a user