if url starts with express route code example
Example: node express dynamic route and error handler
app.use(function (req, res, next) {
res.status(404).send("Sorry can't find that!")
})
app.use(function (req, res, next) {
res.status(404).send("Sorry can't find that!")
})