title: How to catch ERR_CONNECTION_REFUSED thrown by browser if server goes down in node js?
body: <p>How to handle errors on the client-side if connection refuses by the server or the server is not up
  <img src="https://i.stack.imgur.com/wn7f2.png" alt="1" /></p>