Skip to content

best way to save what you love

actually use rate-limit status

wukkof4b486a2364c
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')
});
}