node.js set the response header code to 404 and send back the message Error: Not Found. code example
Example: node js response header
response.setHeader("Content-Type", "text/html");
response.setHeader("Content-Type", "text/html");