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; }