cat_for_status {httpcode} | R Documentation |
Use cat or dog pictures for various HTTP status codes
Description
Use cat or dog pictures for various HTTP status codes
Usage
cat_for_status(code, browse = FALSE)
dog_for_status(code, browse = FALSE)
Arguments
code |
An http status code |
browse |
(logical) If |
Details
uses a service for cats (https://http.cat) and dogs (https://httpstatusdogs.com)
Value
Opens image in your default browser, or returns URL
Examples
## Not run:
# give back url
cat_for_status(100)
dog_for_status(100)
cat_for_status(301)
dog_for_status(301)
cat_for_status(400)
dog_for_status(400)
# open image in default browser
cat_for_status(400, browse=TRUE)
# not found
# cat_for_status(555)
## End(Not run)
[Package httpcode version 0.3.0 Index]