aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-26 20:17:46 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-26 20:17:46 +0000
commit7e68fc136076f2385030faf58f43f6764c0f69d7 (patch)
tree1f9210a7e12f16c3210504e794d84d615cf4232e /web
parente8f1fd60b765981bdd230789eebc9279db477b70 (diff)
changing error code to 422 for one of the validation conditions
Diffstat (limited to 'web')
-rw-r--r--web/routes/index.js2
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)) {