Method: TinyClient::Response#server_error?
- Defined in:
- lib/tiny_client/response.rb
#server_error? ⇒ Boolean
Returns true if the HTTP status code of this response correspond to a server error.
57 58 59 |
# File 'lib/tiny_client/response.rb', line 57 def server_error? @code >= 500 end |