fix bugs of not contine download when http status 500, 502, 503