{"id":17415603,"url":"https://github.com/kevinresol/http-status","last_synced_at":"2026-02-16T09:07:17.158Z","repository":{"id":73718629,"uuid":"59638562","full_name":"kevinresol/http-status","owner":"kevinresol","description":"List of HTTP status codes and reasons","archived":false,"fork":false,"pushed_at":"2020-07-26T05:34:21.000Z","size":21,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-20T15:20:26.218Z","etag":null,"topics":["haxe","http","http-status-code"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinresol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-25T06:55:46.000Z","updated_at":"2020-07-26T05:34:23.000Z","dependencies_parsed_at":"2023-07-09T13:15:56.148Z","dependency_job_id":null,"html_url":"https://github.com/kevinresol/http-status","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kevinresol/http-status","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fhttp-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fhttp-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fhttp-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fhttp-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinresol","download_url":"https://codeload.github.com/kevinresol/http-status/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fhttp-status/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29504688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["haxe","http","http-status-code"],"created_at":"2024-10-17T01:43:35.381Z","updated_at":"2026-02-16T09:07:17.139Z","avatar_url":"https://github.com/kevinresol.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-status\n\nList of HTTP status codes and reasons.\n\n## Usage\n\n```haxe\nvar code:HttpStatusCode = OK;\nvar reason = new HttpStatusMessage(code);\n// or use implicit cast\nvar reason:HttpStatusMessage = code;\n```\n\n## Unofficial codes\n\nHttpStatusCode contains the current official specifications for HTTP status code.\n\nThere exist other unofficial codes, that can be regrouped by categories (Microsoft, Nginx and so on). Overlap is very small right now but there are added in the `httpstatus.unofficial` package anyway.\n\nOnly the `Microsoft.hx` http status codes are implemented right now.\nFeel free to PR for others.\n\n```haxe\nimport httpstatus.HttpStatusCode;\nimport httpstatus.HttpStatusMessage;\nimport httpstatus.unofficial.Microsoft;\n\nvar code    : Microsoft         = SessionTimeout;   // 440\nvar code2   : HttpStatusCode    = SessionTimeout;   // 440\n\nvar reason  : HttpStatusMessage = SessionTimeout;   // \"Client Session Expired Must Log In Again\"\nvar reason2 : HttpStatusMessage = code;             // \"Client Session Expired Must Log In Again\"\n// but:\nvar reason3 : HttpStatusMessage = code2;            // \"Unknown Status\". This is a limitation \n```\n\n## With tink\n\nThere are automatic `#if tink_core` fences in the code, so this does not require it.\n\nProducing these error codes on a server using [tink](https://github.com/haxetink/tink_core) is straightforward.\nWhen getting a `tink.core.Error` on the client, one can use `switch (e.code : HttpStatusCode)`.\nIf your server chose to use some exotic status code such as 440 SessionTimeout (Microsoft), you can use something like:\n\n```haxe\nswitch (e.code : httpstatus.unofficial.Microsoft) {\n    case SessionTimeout:\n    case Forbidden:         // regular codes from HttpStatusCode are also available\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinresol%2Fhttp-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinresol%2Fhttp-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinresol%2Fhttp-status/lists"}