Sutto / rocket_pants

API building tools on top of ActionController. Also, an awesome name.
MIT License
981 stars 130 forks source link

Automatically handled errors always return status code "200"? #115

Closed zetetic closed 10 years ago

zetetic commented 10 years ago

Perhaps I am misunderstanding something here, but it appears that when relying on RocketPants to handle errors, the error report is returned in the body, but the status code is always "200". Is there a way to change this behavior? In other words, can RocketPants returns, say, 404 for a missing resource when handling ActiveRecord::RecordNotFound automatically?

zetetic commented 10 years ago

This seems to have been due to a problem with my test setup. Not sure what was happening...seems to behave as expected now.

mbhnyc commented 9 years ago

I'm actually running into this now. it's very odd!

mbhnyc commented 8 years ago

Annnnd i'm running into this again, but don't remember what I fixed last time. arrrrgh