Improving error handling in batch prediction file downloads