title: DownloadManager - understanding ERROR_HTTP_DATA_ERROR
body: <p>My application depends heavily on android <code>DownloadManager</code> component to download files with approximate size of 3-10 mega bytes.</p>
  <p>when scaling up (to millions of downloads) the big picture is clear:</p>
  <p><strong>~50% of all downloads are failing</strong> due to <a href="http://developer.android.com/reference/android/app/DownloadManager.html#ERROR_HTTP_DATA_ERROR" rel="noreferrer">ERROR_HTTP_DATA_ERROR</a>.</p>
  <p>I'm getting this info from google analytics</p>
  <p>according to the documentation, this error code stands for:</p>
  <blockquote>
  <p>Value of COLUMN_REASON when an error receiving or processing data occurred at the HTTP level.</p>
  </blockquote>
  <p>I found this documentation not very informative.<br />
  there are plenty of http errors out there.</p>
  <p>and what about network disconnection in the middle of the download? does it also triggers the <code>ERROR_HTTP_DATA_ERROR</code> error after failing all the download's manager retry attempts?</p>
  <p>It would be great if someone could help me to understand:</p>
  <ul>
  <li>is there any way to get from <code>DownloadManager</code> more information about the exact http error?</li>
  <li>what are the most common situations <code>ERROR_HTTP_DATA_ERROR</code> can be fired by download manager?</li>
  </ul>
  <p>another point that worth mentioning: while this errors accruing - the user is connected to WIFI network (I'm setting download manager to download only over wifi)</p>
  <p>please don't suggest me not to use download manager at all. I know about this option, advantages and disadvantages.   I'm saving this option as a last resort.</p>