From 8c86c2b3f892e458b90d03128a95b0c79a1c67f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Fri, 23 Mar 2018 15:35:06 +0100 Subject: [PATCH] correct error message in rate limit --- app/middlewares/rate-limit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/middlewares/rate-limit.js b/app/middlewares/rate-limit.js index 4b913582..acb5101a 100644 --- a/app/middlewares/rate-limit.js +++ b/app/middlewares/rate-limit.js @@ -36,7 +36,9 @@ function rateLimit(userLimits, 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.'); + const rateLimitError = new Error( + 'You are over platform\'s limits. Please contact us to know more details' + ); rateLimitError.http_status = 429; return next(rateLimitError); }