correct error message in rate limit
This commit is contained in:
parent
fb784d6a91
commit
609bf13765
@ -46,7 +46,9 @@ function rateLimit(userLimitsApi, endpointGroup = null) {
|
||||
// retry is floor rounded in seconds by redis-cell
|
||||
res.set('Retry-After', retry + 1);
|
||||
|
||||
const rateLimitError = new Error('You are over the limits.');
|
||||
let rateLimitError = new Error(
|
||||
'You are over platform\'s limits. Please contact us to know more details'
|
||||
);
|
||||
rateLimitError.http_status = 429;
|
||||
rateLimitError.type = 'limit';
|
||||
rateLimitError.subtype = 'rate-limit';
|
||||
|
Loading…
Reference in New Issue
Block a user