diff options
Diffstat (limited to 'web/routes')
| -rw-r--r-- | web/routes/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/routes/index.js b/web/routes/index.js index 4bbd7f6..0c72e43 100644 --- a/web/routes/index.js +++ b/web/routes/index.js @@ -33,7 +33,7 @@ router.post('/mobilerequest', function(req, res) { if (!point.coordinates.length) { var errMssg = "Coordinates field must not be empty in a request."; - return res.status(200).send({ error: errMssg }); + return res.status(422).send({ error: errMssg }); } if (!glookup.hasContainers(point)) { |
