method
name_from_code
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::AssertionResponse
name_from_code(code)private
No documentation available.
# File actionpack/lib/action_dispatch/testing/assertion_response.rb, line 43
def name_from_code(code)
GENERIC_RESPONSE_CODES.invert[code] || Rack::Utils::HTTP_STATUS_CODES[code]
end