From d7763b688db4c33d2b6ece587cc6a70a83fcc108 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 11 Oct 2020 13:14:52 -0400 Subject: [PATCH] Fix example error codes --- config.json.example | 2 +- test.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,