# How to rescue 404s from FileHelper.download

**URL:** https://meta.discourse.org/t/how-to-rescue-404s-from-filehelper-download/69998
**Category:** Development
**Created:** [2017 年9 月 13 日 19:08 UTC](https://meta.discourse.org/t/how-to-rescue-404s-from-filehelper-download/69998 "2017-09-13T19:08:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### 作者： ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### 发布日期： [2017 年9 月 13 日 19:08 UTC](https://meta.discourse.org/t/how-to-rescue-404s-from-filehelper-download/69998/1 "2017-09-13T19:08:19Z")

</div>

> <https://github.com/discourse/discourse/blob/main/app/jobs/regular/pull_hotlinked_images.rb#L39-L47>

In above code whenever `FileHelper.download` function fail I need to findout the reason for failing. Whether the file is not found (404) or failed for some other reason.
