Method: TinyClient::Response#error?
- Defined in:
- lib/tiny_client/response.rb
#error? ⇒ Boolean
Returns true if the HTTP status code of this response correspond to an client or server error.
42 43 44 |
# File 'lib/tiny_client/response.rb', line 42 def error? @code >= 400 end |