Clean up your controller code by raising exceptions that generate responses with different HTTP status codes.
Willem van Bergen
gem "http_status_exceptions", "~> 0.2.0"