Node response.writeHead() Method
The response.writeHead() property is used to send a response header to the incoming request. It was introduced in Node.js v1.0 and is a part of the 'http' module. The status code represents a 3-digit HTTP status code (e.g., 404), and the headers parameter contains the response headers. Optionally, a