title: Check if it is possible to download file with delphi
body: <p>Check if it is possible to download file with delphi</p>
  
  <p>Good day ... I'm starting in Delphi and I am creating a program to download files from HTTP ...</p>
  
  <p>I'm using:
    </p>
  
  <pre><code>IdHTTP.Get (URL FileDownload)
  </code></pre>
  
  <p>But my program generates error when it can not download the file ...</p>
  
  <p>Ex: <a href="http://exemplo.com/" rel="nofollow">http://exemplo.com/</a> -> Generates Error</p>
  
  <p>Ex: <a href="http://exemplo.com/meudownload.ts" rel="nofollow">http://exemplo.com/meudownload.ts</a> -> Makes download</p>
  
  <p>I'd like to correct this error, how can I check if it is possible to download the file or if it is being lowered ...</p>
  
  <p>I used <code>EIdHTTPProtocolExeption</code> but only checks HTML error like: 404, 300 ... and is not that I wish ...</p>
  
  <p>I would like to see if you can download the file, or if it is being downloaded ...</p>
  
  <p>If this happens I will download other file:</p>
  
  <p>donw_1.ts, down_2.TS, down_3.TS ... then when he gets el Archiving one that can not be downloaded, I have the answer to cancel the loop ...</p>