response.status nodejs code example
Example 1: node js response header
response.setHeader("Content-Type", "text/html");
Example 2: express set response code
res.status(400);
res.send('None shall pass');
response.setHeader("Content-Type", "text/html");
res.status(400);
res.send('None shall pass');