instance method
status_code
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5 PrivateSignature
status_code(exception)
No documentation comment.
Parameters
-
exceptionreq
Source
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 114
def status_code(exception)
Rack::Utils.status_code(@@rescue_responses[exception.class.name])
end
Defined in actionpack/lib/action_dispatch/middleware/show_exceptions.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ShowExceptions