Method: RestClient::Response#code
- Defined in:
- lib/restclient/response.rb
#code ⇒ Object
HTTP status code, always 200 since RestClient throws exceptions for other codes.
18 19 20 |
# File 'lib/restclient/response.rb', line 18 def code @code ||= @net_http_res.code.to_i end |