Skip to content

Instantly share code, notes, and snippets.

@peterzawistowicz
Created April 17, 2015 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterzawistowicz/1c229dde0d61ebd571bc to your computer and use it in GitHub Desktop.
Save peterzawistowicz/1c229dde0d61ebd571bc to your computer and use it in GitHub Desktop.
app.use(function(req, res, next){
res.status(404);
res.json({ error: 'Invalid URL' });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment