Application Error [200 OK]

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

Joe

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.

On 11/1/06, Joe R. MUDCRAP-CE [email protected]
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

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