Skip to content

Instantly share code, notes, and snippets.

@jysperm
Created August 23, 2016 09:58
Show Gist options
  • Save jysperm/a4eca113e0ad387d60272914dd3e9cea to your computer and use it in GitHub Desktop.
Save jysperm/a4eca113e0ad387d60272914dd3e9cea to your computer and use it in GitHub Desktop.
require('http').createServer(function(req, res) {
if (req.url == '/')
res.statusCode = 200;
else
res.statusCode = 404;
res.end();
}).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment