method
response_code_for_rescue
v1.1.6 -
Show latest stable
- Class:
ActionController::Rescue
response_code_for_rescue(exception)private
No documentation available.
# File actionpack/lib/action_controller/rescue.rb, line 128
def response_code_for_rescue(exception)
case exception
when UnknownAction, RoutingError then "404 Page Not Found"
else "500 Internal Error"
end
end