diff --git a/routes/geocode.js b/routes/geocode.js index 4c13da9..38b7c12 100644 --- a/routes/geocode.js +++ b/routes/geocode.js @@ -16,7 +16,7 @@ module.exports.query = function(req,res) { request.get(url, function(err, resp, body){ if (err) { console.error(err); - return res.send(500); + return res.sendStatus(500); } if (resp.statusCode !== 200) {