# Application Error \[200 OK\]

**URL:** <https://www.ruby-forum.com/t/application-error-200-ok/74223>\
**Category:** Rails\
**Created:** [November 2, 2006, 4:22am UTC](https://www.ruby-forum.com/t/application-error-200-ok/74223 "2006-11-02T04:22:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [November 2, 2006, 4:22am UTC](https://www.ruby-forum.com/t/application-error-200-ok/74223/1 "2006-11-02T04:22:21Z")

</div>

Why does Rails by default give an HTTP 200 OK status when it gives the  
‘Application Error’ WSOD?

Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [November 2, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/application-error-200-ok/74223/2 "2006-11-02T20:27:54Z")

</div>

Joe R. MUDCRAP-CE wrote:

> Why does Rails by default give an HTTP 200 OK status when it gives the  
> ‘Application Error’ WSOD?
> 
> Joe

Because it rendered that view successfully? I agree, it would be nice to  
give a proper HTTP status code.

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [November 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/application-error-200-ok/74223/3 "2006-11-07T10:54:02Z")

</div>

On 11/1/06, Joe R. MUDCRAP-CE [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Why does Rails by default give an HTTP 200 OK status when it gives the  
> ‘Application Error’ WSOD?

The controller rescues and responds with 404 or 500 (unknown action +  
routing error / all others); the dispatcher rescues and responds with  
400 or  
500 (bad CGI params / all others).

Please demonstrate your assertion.

jeremy

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 1, 2006, 1:24am UTC](https://www.ruby-forum.com/t/application-error-200-ok/74223/4 "2006-12-01T01:24:04Z")

</div>

For me, any kind of error gives that message with the 200 code (in  
production) Even on a brand new empty rails app with a single  
controller and action.

David
