http_status
or
http://en.wikipedia.org/wiki/Http_status_codes
for
more information on http status codes.stop_for_status(x) warn_for_status(x)
content
,
http_status
, response
,
url_ok
, url_success
x <- GET("http://httpbin.org/status/200")
stop_for_status(x) # nothing happens
warn_for_status(x)
x <- GET("http://httpbin.org/status/300")
stop_for_status(x)
warn_for_status(x)
x <- GET("http://httpbin.org/status/404")
stop_for_status(x)
warn_for_status(x)
Run the code above in your browser using DataLab