{"id":20578834,"url":"https://github.com/hydrocarbons/http-code-simulator","last_synced_at":"2025-03-06T11:44:07.756Z","repository":{"id":139598194,"uuid":"165593517","full_name":"HydroCarbons/http-code-simulator","owner":"HydroCarbons","description":"HTTP Status Code Simulator for quick testing and development","archived":false,"fork":false,"pushed_at":"2019-01-19T03:52:48.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T22:20:10.839Z","etag":null,"topics":["2019","adf","express","http","httpcode","hydrocarbons","mock","productivity","prototyping","response","rest-api","server"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HydroCarbons.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-14T04:07:30.000Z","updated_at":"2019-01-19T03:52:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"91d1be55-fba0-4e4b-95e8-98fad975ce3e","html_url":"https://github.com/HydroCarbons/http-code-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroCarbons%2Fhttp-code-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroCarbons%2Fhttp-code-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroCarbons%2Fhttp-code-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroCarbons%2Fhttp-code-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HydroCarbons","download_url":"https://codeload.github.com/HydroCarbons/http-code-simulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242206001,"owners_count":20089251,"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":["2019","adf","express","http","httpcode","hydrocarbons","mock","productivity","prototyping","response","rest-api","server"],"created_at":"2024-11-16T06:14:43.407Z","updated_at":"2025-03-06T11:44:07.746Z","avatar_url":"https://github.com/HydroCarbons.png","language":"JavaScript","readme":"# http-code-simulator\n\n## Travis CI Status\n[![Build Status](https://travis-ci.com/HydroCarbons/http-code-simulator.svg?branch=master)](https://travis-ci.com/HydroCarbons/http-code-simulator)\n[![Coverage Status](https://coveralls.io/repos/github/HydroCarbons/http-code-simulator/badge.svg?branch=master)](https://coveralls.io/github/HydroCarbons/http-code-simulator?branch=master)\n\n# http-code-simulator\n- **http-code-simulator** is a HTTP response code simulator server. One can test various HTTP response codes from the server on the client side using this simulator with an optional server side processing time.\n\n## Install the simulator\n1. Clone this repository http-code-simulator\n1. Switch to folder http-code-simulator\n1. Install dependencies: ` npm install `\n1. Start the server: ` npm start `  Or ` node ./src/index.js --startServer `\n1. Simulator will be running @ ` \u003clocalhost\u003e:\u003c9090\u003e `\n\n## Usage (client side)\n1. Send client HTTP requests (any HTTP Method) to ` \u003clocalhost\u003e:\u003c9090\u003e/status/\u003cHTTPCode\u003e `\n1. Simulate server side delay with ` \u003clocalhost\u003e:\u003c9090\u003e/status/\u003cHTTPCode\u003e?sleep=\u003cMiliseconds\u003e `\n\n## Test\n1. Execute test run ` npm test `\n\n\n# HTTP Status codes\n\n```javascript\n\n\"101\": { \"description\":  \"\" },\n\n\"200\": { \"description\":  \"OK\" },\n\"201\": { \"description\":  \"Created\" },\n\"202\": { \"description\":  \"Accepted\" },\n\"203\": { \"description\":  \"Non-Authoritative Information\" },\n\"204\": { \"description\":  \"\" },\n\"205\": { \"description\":  \"Reset Content\" },\n\"206\": { \"description\":  \"Partial Content\" },\n\"207\": { \"description\":  \"Multi-Status (WebDAV)\" },\n\"208\": { \"description\":  \"Already Reported (WebDAV)\" },\n\"226\": { \"description\":  \"IM Used\" },\n\n\"300\": { \"description\":  \"Multiple Choices\" },\n\"301\": { \"description\":  \"Moved Permanently\" },\n\"302\": { \"description\":  \"Found\" },\n\"303\": { \"description\":  \"See Other\" },\n\"304\": { \"description\":  \"\" },\n\"305\": { \"description\":  \"Use Proxy\" },\n\"306\": { \"description\":  \"Unused\" },\n\"307\": { \"description\":  \"Temporary Redirect\" },\n\"308\": { \"description\":  \"Permanent Redirect\" },\n\n\"400\": { \"description\":  \"Bad Request\" },\n\"401\": { \"description\":  \"Unauthorized\" },\n\"402\": { \"description\":  \"Payment Required\" },\n\"403\": { \"description\":  \"Forbidden\" },\n\"404\": { \"description\":  \"Not Found\" },\n\"405\": { \"description\":  \"Method Not Allowed\" },\n\"406\": { \"description\":  \"Not Acceptable\" },\n\"407\": { \"description\":  \"Proxy Authentication Required\" },\n\"408\": { \"description\":  \"Request Timeout\" },\n\"409\": { \"description\":  \"Conflict\" },\n\"410\": { \"description\":  \"Gone\" },\n\"411\": { \"description\":  \"Length Required\" },\n\"412\": { \"description\":  \"Precondition Failed\" },\n\"413\": { \"description\":  \"Request Entry Too Large\" },\n\"414\": { \"description\":  \"Request-URI Too Long\" },\n\"415\": { \"description\":  \"Unsupported Media Type\" },\n\"416\": { \"description\":  \"Requested Range Not Satisfiable\" },\n\"417\": { \"description\":  \"Expectation Failed\" },\n\"418\": { \"description\":  \"I'm a teapot (RFC 2324)\" },\n\"420\": { \"description\":  \"Enhance Your Calm (Twitter)\" },\n\"422\": { \"description\":  \"Unprocessable Entity (WebDAV)\" },\n\"423\": { \"description\":  \"Locked (WebDAV)\" },\n\"424\": { \"description\":  \"Failed Dependency (WebDAV)\" },\n\"425\": { \"description\":  \"Reserved for WebDAV\" },\n\"426\": { \"description\":  \"Upgrade required\" },\n\"428\": { \"description\":  \"Precondition Required\" },\n\"429\": { \"description\":  \"Too Many Requests\" },\n\"431\": { \"description\":  \"Request Header Fields Too Large\" },\n\"444\": { \"description\":  \"No Response (Nginx)\" },\n\"449\": { \"description\":  \"Retry With (Microsoft)\" },\n\"450\": { \"description\":  \"Blocked by Windows Parental Controls (Microsoft)\" },\n\"451\": { \"description\":  \"Unavailable For Legal Reasons\" },\n\"499\": { \"description\":  \"Client Closed Request (Nginx)\" },\n\n\"500\": { \"description\":  \"Internal Server Error\" },\n\"501\": { \"description\":  \"Not Implemented\" },\n\"502\": { \"description\":  \"ad Gateway\" },\n\"503\": { \"description\":  \"Service Unavailable\" },\n\"504\": { \"description\":  \"Gateway Timeout\" },\n\"505\": { \"description\":  \"HTTP Version Not Supported\" },\n\"506\": { \"description\":  \"Variant Also Negotiates (Experimental)\" },\n\"507\": { \"description\":  \"Insufficient Storage (WebDAV)\" },\n\"508\": { \"description\":  \"Loop Detected (WebDAV)\" },\n\"509\": { \"description\":  \"Bandwidth Limit Exceeded (Apache)\" },\n\"510\": { \"description\":  \"Not Extended\" },\n\"511\": { \"description\":  \"Network Authentication Required\" },\n\"520\": { \"description\":  \"Web server is returning an unknown error\" },\n\"522\": { \"description\":  \"Connection timed out\" },\n\"524\": { \"description\":  \"A timeout occurred\" },\n\"598\": { \"description\":  \"Network read timeout error\" },\n\"599\": { \"description\":  \"Network connect timeout error\" }\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydrocarbons%2Fhttp-code-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhydrocarbons%2Fhttp-code-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydrocarbons%2Fhttp-code-simulator/lists"}