What line of code describes you best? 🤔
katyadee (1163)

Okay, I lifted this from Quora, but I thought it was a really cool question with lots of ways to interpret it! What line of code describes y'all best?

You are viewing a single comment. View All
vedprad1 (836)

@vvc : If you are using express, it is simple. Just have this as your last route just before the starting of the server:

app.get('*', function (req, res) {
  res.status(404).send('404 Not Found');