Method: Patron::Response#ok?

Defined in:
lib/patron/response.rb

#ok?Boolean

Tells whether the HTTP response code is less than 400

Returns:

  • (Boolean)


51
52
53
# File 'lib/patron/response.rb', line 51

def ok?
  !error?
end