Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created May 25, 2012 12:12
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 tommedema/2787668 to your computer and use it in GitHub Desktop.
Save tommedema/2787668 to your computer and use it in GitHub Desktop.
app.get('*', function(req, res) {
req.once('end', function() {
require('util').debug('!!! THIS NEVER FIRES, req: ' + req.url);
});
res.writeHead(404);
res.end('My apologies, the request you performed cannot be answered (404). Please check for possbile typing errors.');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment