From c09aaf55ece7bdd6d38ca806eb44c2dc33acda6b Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Sun, 14 Jan 2018 09:23:51 -0500 Subject: [PATCH] Change json parse error code to 500 --- app/routes/keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/keys.js b/app/routes/keys.js index f2414b7..8dbb381 100755 --- a/app/routes/keys.js +++ b/app/routes/keys.js @@ -20,7 +20,7 @@ router.post('/create', function (req, res) { try { scope = JSON.parse(req.body.scope); } catch (e) { - res.status(400).json({'message': e.name + ': ' + e.message}); + res.status(500).json({'message': e.name + ': ' + e.message}); return; }