changed from general.send404(res)  to  res.status(404); res.end();