# OpenURI error handling

**URL:** <https://www.ruby-forum.com/t/openuri-error-handling/111830>\
**Category:** Rails\
**Created:** [August 11, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/openuri-error-handling/111830 "2007-08-11T20:54:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koalemos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/65b543/32.png) [@Koalemos](https://www.ruby-forum.com/u/Koalemos)\
**Post date:** [August 11, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/openuri-error-handling/111830/1 "2007-08-11T20:54:24Z")

</div>

I’m getting a 404 error occasionally when using the open method from  
OpenURI. I’m primarily using the command inside of a helper and I’m  
not sure how to do any error handling when that happens.

Any help would be greatly appreciated.  
Thanks,  
Tal
