class method
self.status_code_for_exception
Ruby on Rails 8.1.2
Since v3.2.22.5Signature
self.status_code_for_exception(class_name)
No documentation comment.
Parameters
-
class_namereq
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 181
def self.status_code_for_exception(class_name)
ActionDispatch::Response.rack_status_code(@@rescue_responses[class_name])
end
Defined in actionpack/lib/action_dispatch/middleware/exception_wrapper.rb line 181
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ExceptionWrapper