Created
May 5, 2013 09:08
-
-
Save bencevans/5520229 to your computer and use it in GitHub Desktop.
'I'm a teapot' node.js server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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