|
|
|
@ -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
|
|
|
|
|