diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-03-26 20:19:40 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-03-26 20:19:40 +0000 |
| commit | 2ec60276238f0b5d402ec2a5d02321e2e4c99303 (patch) | |
| tree | 6fe3392ad443bce936331b0adcc3801634f02c0c | |
| parent | 7e68fc136076f2385030faf58f43f6764c0f69d7 (diff) | |
for both validations
| -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 0c72e43..0b32d0e 100644 --- a/web/routes/index.js +++ b/web/routes/index.js @@ -38,7 +38,7 @@ router.post('/mobilerequest', function(req, res) { if (!glookup.hasContainers(point)) { var errMssg = "Sorry, we currently only support locations strictly within the City of Toronto."; - return res.status(200).send({ error: errMssg }); + return res.status(422).send({ error: errMssg }); } // here we are guaranteed to have a valid point in Toronto |
