Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

404 responses in express

app.use(function (req, res, next) {
  res.status(404).send("Sorry can't find that!")
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #responses #express
ADD COMMENT
Topic
Name
6+8 =