Use writeHead to write the headers. Removed link.send(200, ok).