title: Express server causes error "This site can’t provide a secure connection localhost sent an invalid response"
body: <p>I'm trying to make a simple hello world kind of server using <strong>Express</strong>.
  Here goes my code:</p>
  
  <pre><code>const express = require("express");
  const app = express();
  
  app.get("/",function(request, response){//what to do when someone make get request to the homepage or route
    console.log(request);
    response.send("hello");
  });
  
  app.listen(3000, function(){
    console.log("server is listening at port 3000");
  });
  </code></pre>
  
  <p>When I run the program I see this at the command prompt:</p>
  
  <p><code>server is listening at port 3000</code></p>
  
  <p>But when I'm accessing it through a browser <em>i.e.</em> <code>https://localhost:3000</code>, I'm getting an error:</p>
  
  <blockquote>
    <p>This site can’t provide a secure connection localhost sent an invalid
    response. Try running Windows Network Diagnostics.
    ERR_SSL_PROTOCOL_ERROR</p>
  </blockquote>
  
  <p>I expect the browser to see <code>hello</code> as per my method, above, <code>response.send("hello")</code></p>