res.writeHead() works