Rework expansion of HTTP status code to work with rails 3