Method: Net::HTTPResponse#code
- Defined in:
- lib/net/http/response.rb
#code ⇒ Object (readonly)
The HTTP result code string. For example, ‘302’. You can also determine the response type by examining which response subclass the response object is an instance of.
213 214 215 |
# File 'lib/net/http/response.rb', line 213 def code @code end |