instance method
code
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
code()
Returns a string to ensure compatibility with Net::HTTPResponse.
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 298
def code
@status.to_s
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 298
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response