# Handling 'recognition failed'?

**URL:** <https://www.ruby-forum.com/t/handling-recognition-failed/61075>\
**Category:** Rails\
**Created:** [January 11, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/handling-recognition-failed/61075 "2006-01-11T21:17:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![csn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@csn](https://www.ruby-forum.com/u/csn)\
**Post date:** [January 11, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/handling-recognition-failed/61075/1 "2006-01-11T21:17:34Z")

</div>

How can I handle ‘recognition failed’ errors so they  
act like typical 404 errors? By displaying a message,  
page and/or redirecting.

thanks  
csn

* * *

Do You Yahoo!?  
Tired of spam? Yahoo! Mail has the best spam protection around

> **[Yahoo Mail - Organized Email](https://mail.yahoo.com)**
>
> It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![csn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@csn](https://www.ruby-forum.com/u/csn)\
**Post date:** [January 12, 2006, 1:05am UTC](https://www.ruby-forum.com/t/handling-recognition-failed/61075/2 "2006-01-12T01:05:38Z")

</div>

CSN wrote:

> How can I handle ‘recognition failed’ errors so they  
> act like typical 404 errors? By displaying a message,  
> page and/or redirecting.

Try running your application in production mode - IIRC you will see your  
404 page when recognition fails.

regards

Justin
