{"id":14067585,"url":"https://github.com/sckott/httpcode","last_synced_at":"2025-04-23T20:19:08.832Z","repository":{"id":23933661,"uuid":"27314857","full_name":"sckott/httpcode","owner":"sckott","description":"http status code investigation","archived":false,"fork":false,"pushed_at":"2023-05-18T21:14:18.000Z","size":76,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T20:18:50.357Z","etag":null,"topics":["http","r","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sckott.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-11-29T20:59:17.000Z","updated_at":"2023-09-19T17:03:11.000Z","dependencies_parsed_at":"2023-01-14T00:06:16.169Z","dependency_job_id":"a606cda0-e29a-4f2a-97d7-bb88b17b8933","html_url":"https://github.com/sckott/httpcode","commit_stats":{"total_commits":65,"total_committers":2,"mean_commits":32.5,"dds":0.06153846153846154,"last_synced_commit":"029052c8ec7f96f7e63324d227d6953e1377136e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttpcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttpcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttpcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttpcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/httpcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250506147,"owners_count":21441723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","r","rstats"],"created_at":"2024-08-13T07:05:40.540Z","updated_at":"2025-04-23T20:19:08.801Z","avatar_url":"https://github.com/sckott.png","language":"R","readme":"httpcode\n========\n\n```{r echo=FALSE}\nlibrary(\"knitr\")\nhook_output \u003c- knitr::knit_hooks$get(\"output\")\nknitr::knit_hooks$set(output = function(x, options) {\n   lines \u003c- options$output.lines\n   if (is.null(lines)) {\n     return(hook_output(x, options))  # pass to default hook\n   }\n   x \u003c- unlist(strsplit(x, \"\\n\"))\n   more \u003c- \"...\"\n   if (length(lines)==1) {        # first n lines\n     if (length(x) \u003e lines) {\n       # truncate the output, but add ....\n       x \u003c- c(head(x, lines), more)\n     }\n   } else {\n     x \u003c- c(if (abs(lines[1])\u003e1) more else NULL,\n            x[lines],\n            if (length(x)\u003elines[abs(length(lines))]) more else NULL\n           )\n   }\n   # paste these lines together\n   x \u003c- paste(c(x, \"\"), collapse = \"\\n\")\n   hook_output(x, options)\n })\n\nknitr::opts_chunk$set(\n  warning = FALSE,\n  message = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n[![cran checks](https://badges.cranchecks.info/worst/httpcode.svg)](https://cloud.r-project.org/web/checks/check_results_httpcode.html)\n[![R-check](https://github.com/sckott/httpcode/actions/workflows/R-check.yaml/badge.svg)](https://github.com/sckott/httpcode/actions/workflows/R-check.yaml)\n[![codecov](https://codecov.io/gh/sckott/httpcode/branch/master/graph/badge.svg?token=gvEuPJXQuK)](https://codecov.io/gh/sckott/httpcode)\n[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/httpcode)](https://github.com/metacran/cranlogs.app)\n[![cran version](https://www.r-pkg.org/badges/version/httpcode)](https://cran.r-project.org/package=httpcode)\n\n`httpcode` is a tiny R package to search for and show http code messages and description. It's a port of the Python httpcode (https://github.com/rspivak/httpcode) library.\n\n`httpcode` has no dependencies.\n\nFollows RFC 2616 (https://www.ietf.org/rfc/rfc2616.txt), and for additional codes \nfollowing RFC 6585 (https://tools.ietf.org/html/rfc6585).\n\nStructure of information for each status code:\n\n* `status_code` - the status code\n* `message` - very brief message explaining the code\n* `explanation` - more verbose explanation, but still short\n* `explanation_verbose` - the complete explanation\n\n## Installation\n\nStable version\n\n```{r eval=FALSE}\ninstall.packages(\"httpcode\")\n```\n\nDevelopment version\n\n```{r eval=FALSE}\ninstall.packages(\"pak\")\npak::pkg_install(\"sckott/httpcode\")\n```\n\n```{r}\nlibrary(\"httpcode\")\n```\n\n## Search by http code\n\n```{r}\nhttp_code(100)\n```\n\n```{r}\nhttp_code(400)\n```\n\n```{r}\nhttp_code(503)\n```\n\n```{r}\nhttp_code(999)\n```\n\n## Get verbose status code description\n\n```{r}\nhttp_code(100, verbose = TRUE)\n```\n\n```{r}\nhttp_code(400, verbose = TRUE)\n```\n\n# Fuzzy code search\n\n```{r}\nhttp_code('1xx')\n```\n\n```{r output.lines = 1:10}\nhttp_code('3xx')\n```\n\n```{r}\nhttp_code('30[12]')\n```\n\n```{r}\nhttp_code('30[34]')\n```\n\n## Search by message\n\n```{r output.lines = 1:10}\nhttp_search(\"request\")\n```\n\n```{r}\nhttp_search(\"forbidden\")\n```\n\n```{r}\nhttp_search(\"too\")\n```\n\n```{r}\nhttp_search(\"birds\")\n```\n\n\n## Bugs/features?\n\nSee [issues](https://github.com/sckott/httpcode/issues)\n\n## Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct][coc]. By participating in this project you agree to abide by its terms.\n\n[coc]: https://github.com/sckott/httpcode/blob/main/CODE_OF_CONDUCT.md\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fhttpcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fhttpcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fhttpcode/lists"}