Skip to content

Instantly share code, notes, and snippets.

@bencevans
Created May 5, 2013 09:08
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 bencevans/5520229 to your computer and use it in GitHub Desktop.
Save bencevans/5520229 to your computer and use it in GitHub Desktop.
'I'm a teapot' node.js server
var http = require('http');
var server = http.createServer(function(req, res) {
res.statusCode = 418;
res.end('I\'m a teapot');
});
server.listen(process.env.PORT || 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment