Description Usage Arguments Value Examples
Parse the server error or raise for status.
1 | parse_server_error_or_raise_for_status(response)
|
response |
A response object from |
If the response code is 200 or 204, a parsed response. Else, a server error or raised exception.
1 2 3 4 5 6 | ## Not run:
b2 <- "http://httpbin.org/post"
response <- httr::POST(b2, body = "A simple text string")
parse_server_error_or_raise_for_status(response)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.