Node.js - HTTP Module
Identify the error in this Node.js code that tries to set a response header:
const http = require('http');
const server = http.createServer((req, res) => {
res.write('Hello');
res.setHeader('Content-Type', 'text/plain');
res.end();
});
server.listen(3000);