{"id":44596401,"url":"https://github.com/mitty1293/return-http-status-code","last_synced_at":"2026-02-14T08:17:20.432Z","repository":{"id":40274592,"uuid":"380488712","full_name":"mitty1293/return-http-status-code","owner":"mitty1293","description":"API to return HTTP status code","archived":false,"fork":false,"pushed_at":"2024-12-16T14:47:32.000Z","size":98,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T15:48:01.765Z","etag":null,"topics":["docker","docker-compose","flask","http-status-code","httpstatus","python"],"latest_commit_sha":null,"homepage":"http://returncode.fmitty.net/","language":"HTML","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/mitty1293.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-26T11:46:46.000Z","updated_at":"2022-05-20T13:24:20.000Z","dependencies_parsed_at":"2023-02-09T15:01:27.017Z","dependency_job_id":null,"html_url":"https://github.com/mitty1293/return-http-status-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitty1293/return-http-status-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitty1293%2Freturn-http-status-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitty1293%2Freturn-http-status-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitty1293%2Freturn-http-status-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitty1293%2Freturn-http-status-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitty1293","download_url":"https://codeload.github.com/mitty1293/return-http-status-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitty1293%2Freturn-http-status-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29439884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"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":["docker","docker-compose","flask","http-status-code","httpstatus","python"],"created_at":"2026-02-14T08:17:19.959Z","updated_at":"2026-02-14T08:17:20.428Z","avatar_url":"https://github.com/mitty1293.png","language":"HTML","readme":"# return-http-status-code\nAPI to return HTTP status code\n\nEnter any HTTP status code in `[http_status_code]` and access https://returncode.fmitty.net/.  \nThen you will get a response containing the code you specified.\n```\nhttps://returncode.fmitty.net/[http_status_code]\n```\n\nIf a status code that is not listed in the [class http.HTTPStatus](https://docs.python.org/3/library/http.html#http-status-codes) is specified, `Unknown` will be returned.\n## Example\n```Shell\n$ curl -I https://returncode.fmitty.net/500\nHTTP/1.1 500 INTERNAL SERVER ERROR\nServer: nginx/1.20.1\nDate: Tue, 13 Jul 2021 15:16:34 GMT\nContent-Type: text/html; charset=utf-8\nContent-Length: 0\nConnection: keep-alive\n\n$ curl -I https://returncode.fmitty.net/299\nHTTP/1.1 299 UNKNOWN\nServer: nginx/1.20.1\nDate: Fri, 20 May 2022 13:14:42 GMT\nContent-Type: text/html; charset=utf-8\nContent-Length: 11\nConnection: keep-alive\n```\n## Self hosting\n### Production Environment(via traefik)\nCheck the value of the HOST_DOMAIN environment variable for the host.\n```\nprintenv HOST_DOMAIN\n```\nStart the container.\n```\ndocker network create traefik_reverse_proxy_network\ndocker compose -f compose.traefik.yml up -d\n```\nGo to `https://returncode.${HOST_DOMAIN}/[http_status_code]`, you will get a response containing the code you specified.  \n\nIf you want to enable debug mode, change the environment variable `FLASK_DEBUG` in Dockerfile.\n### Production Environment(Standalone)\nStart the container.\n```\ndocker compose -f compose.yml up -d\n```\nGo to `http://host-ip:8000/[http_status_code]`, you will get a response containing the code you specified.  \n\nIf you want to enable debug mode, change the environment variable `FLASK_DEBUG` in Dockerfile.  \nIf you want to change the port number, change the value in Dockerfile and compose file.\n### Development Environment\nStart the development server.\n```\nrye run devserver\n```\nGo to `http://host-ip:5000/[http_status_code]`.\n\n## Test\n```\nrye test\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitty1293%2Freturn-http-status-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitty1293%2Freturn-http-status-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitty1293%2Freturn-http-status-code/lists"}