From f4b486a2364cd3bb34eb58f59bee7dcbb025a07c Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 14 Aug 2023 01:51:55 +0600 Subject: [PATCH] actually use rate-limit status --- src/core/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/api.js b/src/core/api.js index 51b4e1c9..84464b56 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -27,7 +27,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { keyGenerator: (req, res) => sha256(getIP(req), ipSalt), handler: (req, res, next, opt) => { return res.status(429).json({ - "status": "error", + "status": "rate-limit", "text": loc(languageCode(req), 'ErrorRateLimit') }); } @@ -40,7 +40,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { keyGenerator: (req, res) => sha256(getIP(req), ipSalt), handler: (req, res, next, opt) => { return res.status(429).json({ - "status": "error", + "status": "rate-limit", "text": loc(languageCode(req), 'ErrorRateLimit') }); }