cat_for_status function

Use cat or dog pictures for various HTTP status codes

Use cat or dog pictures for various HTTP status codes

cat_for_status(code, browse = FALSE) dog_for_status(code, browse = FALSE)

Arguments

  • code: An http status code
  • browse: (logical) If TRUE, opens image in default browser. If FALSE, returns the URL of the image.

Returns

Opens image in your default browser, or returns URL

Details

uses a service for cats (https://http.cat) and dogs (https://httpstatusdogs.com)

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)
  • Maintainer: Scott Chamberlain
  • License: MIT + file LICENSE
  • Last published: 2020-04-10