From 2ec60276238f0b5d402ec2a5d02321e2e4c99303 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Tue, 26 Mar 2019 16:19:40 -0400 Subject: for both validations --- web/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') 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 -- cgit v1.2.3