Skip to content

Commit

Permalink
html: better HTTP return code for malformed id in /scan:id
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  • Loading branch information
madrisan committed May 29, 2016
1 parent f61639e commit bfa835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/server/routes/scan.js
Expand Up @@ -52,7 +52,7 @@ module.exports = function(wagner) {
}
catch(error) {
return res.
status(HTTPStatus.INTERNAL_SERVER_ERROR).
status(HTTPStatus.BAD_REQUEST).
json({ error: error.message });
}

Expand Down

0 comments on commit bfa835e

Please sign in to comment.