mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Adding error message on connection limit met
This commit is contained in:
@@ -47,6 +47,7 @@ const (
|
||||
BandWidthQuotaExceeded
|
||||
BandWidthInsufficientToProceed
|
||||
SlowDown
|
||||
ConnectionLimitExceeded
|
||||
)
|
||||
|
||||
// Golang http doesn't implement these
|
||||
@@ -89,6 +90,11 @@ 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