instance method status_code

Ruby on Rails 3.1.12

Since v3.0.20 Last seen in v3.2.22.5 Private

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

status_code(exception)

No documentation comment.

Parameters

exception req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close