diff --git a/config.json.example b/config.json.example index 9ff06fb..5f3c199 100644 --- a/config.json.example +++ b/config.json.example @@ -28,7 +28,7 @@ "windowMs": 900000, // 15 minutes "max": 20, // 20 requests in 15min time window "message": "Too many votes, please try again later", - "statusCode": 200 + "statusCode": 429 }, "view": { "windowMs": 900000, // 15 minutes diff --git a/test.json b/test.json index 0ed40f0..d8b1e7b 100644 --- a/test.json +++ b/test.json @@ -55,7 +55,7 @@ "windowMs": 900000, "max": 20, "message": "Too many votes, please try again later", - "statusCode": 200 + "statusCode": 429 }, "view": { "windowMs": 900000,