title: Delphi and indy TIDHTTP : distinguish between "server not found" and "not found" response error
body: <p>I am using indy TIDHTTP to code a way to know whether my server on the internet is down or the address of the page on the same server is not available.</p>
  
  <p>I copied the suggestion given in another thread on stackoverflow:</p>
  
  <pre><code>try
    IdHTTP1.Get(mypage_address);
  except
    on E: EIdHTTPProtocolException do begin
       if e.errorcode=404 then
          showmessage('404 File not found');
      // use E.ErrorCode, E.Message, and E.ErrorMessage as needed...
    end;
  end;
  </code></pre>
  
  <p>but this way I am only able to detect a server response code and not whether the server did not respond at all. I guess it's trivial but I do not know what is the way to do that?</p>