{"id":17471085,"url":"https://github.com/abhn/http-status-code","last_synced_at":"2026-05-05T08:37:19.325Z","repository":{"id":87887035,"uuid":"482419956","full_name":"abhn/http-status-code","owner":"abhn","description":"Dockerized Nginx project that can return most HTTP status codes for testing","archived":false,"fork":false,"pushed_at":"2022-04-17T09:14:46.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T05:59:06.548Z","etag":null,"topics":["docker","nginx"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhn.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":"2022-04-17T03:48:30.000Z","updated_at":"2022-04-18T07:48:13.000Z","dependencies_parsed_at":"2024-01-23T03:06:22.269Z","dependency_job_id":null,"html_url":"https://github.com/abhn/http-status-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhn/http-status-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhn%2Fhttp-status-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhn%2Fhttp-status-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhn%2Fhttp-status-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhn%2Fhttp-status-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhn","download_url":"https://codeload.github.com/abhn/http-status-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhn%2Fhttp-status-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32642278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","nginx"],"created_at":"2024-10-18T16:23:21.855Z","updated_at":"2026-05-05T08:37:19.309Z","avatar_url":"https://github.com/abhn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Status Code\nExtremely simple Docker Nginx setup that can return most HTTP status codes for testing\n\n### Setup\n- Clone the project\n- Install dependencies with `pipfile install`\n- Run `python subdomain-config-generator.py` to generate subdomain configs\n- Run `docker build -t return-status . \u0026\u0026 docker run -d -p 8080:80 return-status` to build and start the project at port 8080\n- Open `\"status_code\".localhost:8080` and the page will return the HTTP status code as directed.\n\n### Examples\n#### `curl -v 502.localhost`\n![image](https://user-images.githubusercontent.com/6270406/163708229-a03260f6-a4cf-49ea-a644-69fc545fb7ae.png)\n\n#### `curl -v 204.localhost`\n![image](https://user-images.githubusercontent.com/6270406/163708253-ea2855bb-c364-41c1-99b9-14dcd25317bd.png)\n\n\n### Supported HTTP Codes\n```py\nhttp_status_codes = {\n  '1xx': [100, 101, 102, 103],\n  '2xx': [200, 201, 202, 203, 204, 205, 206, 207, 208, 226],\n  '3xx': [300, 301, 302, 303, 304, 307, 308],\n  '4xx': [400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 421, 422, 423, 424, 426, 428, 429, 431, 451],\n  '5xx': [500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhn%2Fhttp-status-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhn%2Fhttp-status-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhn%2Fhttp-status-code/lists"}