View source: R/cat_for_status.R
cat_for_status | R Documentation |
Use cat or dog or goat pictures for various HTTP status codes
cat_for_status(code, browse = FALSE)
dog_for_status(code, browse = FALSE)
goat_for_status(code, browse = FALSE)
code |
An http status code |
browse |
(logical) If |
uses a service for cats (https://httpcats.com) and dogs (https://http.dog) and goats (https://httpgoats.com)
Opens image in your default browser, or returns URL
## Not run:
# give back url
cat_for_status(100)
dog_for_status(100)
goat_for_status(100)
cat_for_status(301)
dog_for_status(301)
goat_for_status(301)
cat_for_status(400)
dog_for_status(400)
goat_for_status(400)
# open image in default browser
cat_for_status(400, browse=TRUE)
# not found
# cat_for_status(555)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.