Description Usage Arguments Details Value Examples
View source: R/cat_for_status.R
Use cat or dog pictures for various HTTP status codes
1 2 3 | cat_for_status(code, browse = FALSE)
dog_for_status(code, browse = FALSE)
|
code |
An http status code |
browse |
(logical) If |
uses a service for cats (https://http.cat) and dogs (https://httpstatusdogs.com)
Opens image in your default browser, or returns URL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## 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)
|
[1] "https://http.cat/100"
[1] "https://httpstatusdogs.com/wp-content/uploads/100.jpg"
[1] "https://http.cat/301"
[1] "https://httpstatusdogs.com/wp-content/uploads/301.jpg"
[1] "https://http.cat/400"
[1] "https://httpstatusdogs.com/wp-content/uploads/400.jpg"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.