title: getaddrinfo ENOENT error from HTTP request on Node.js
body: <p>Below is the code for my Node.js HTTP response requester.</p>
  
  <p>Once I use a website that I explicitly know does not exist, the error message would notify me the error: <code>getaddrinfo ENOENT</code></p>
  
  <p>I want to know more about this error. What spawns it? What's the detail of the error? Would 404' spawn it?</p>
  
  <pre><code>var hostNames = ['www.pageefef.com'];
  
  for (i; i &lt; hostNames.length; i++){
  
      var options = {
              host: hostNames[i],
              path: '/'
      };
  
    (function (i){
      http.get(options, function(res) {
  
        var obj = {};
        obj.url = hostNames[i];
        obj.statusCode = res.statusCode;
        // obj.headers = res.headers;
  
        console.log(JSON.stringify(obj, null, 4));
      }).on('error',function(e){
        console.log("Error: " + hostNames[i] + "\n" + e.message);
      });
    })(i);
  };
  </code></pre>