Method: Patron::Response#error?

Defined in:
lib/patron/response.rb

#error?Boolean

Tells whether the HTTP response code is larger than 399

Returns:

  • (Boolean)


58
59
60
# File 'lib/patron/response.rb', line 58

def error?
  status >= 400
end