{"id":15926424,"url":"https://github.com/zemse/http-response-status-codes","last_synced_at":"2025-04-03T13:26:43.873Z","repository":{"id":57268323,"uuid":"253044852","full_name":"zemse/http-response-status-codes","owner":"zemse","description":"Constants for HTTP response status codes that indicate whether a specific HTTP request has been successfully completed","archived":false,"fork":false,"pushed_at":"2020-04-04T18:38:20.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T21:33:33.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zemse.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":"2020-04-04T16:24:27.000Z","updated_at":"2020-04-04T18:39:15.000Z","dependencies_parsed_at":"2022-09-02T02:50:14.163Z","dependency_job_id":null,"html_url":"https://github.com/zemse/http-response-status-codes","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/zemse%2Fhttp-response-status-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhttp-response-status-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhttp-response-status-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhttp-response-status-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemse","download_url":"https://codeload.github.com/zemse/http-response-status-codes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247008424,"owners_count":20868383,"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":[],"created_at":"2024-10-06T22:40:44.462Z","updated_at":"2025-04-03T13:26:43.815Z","avatar_url":"https://github.com/zemse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-response-status-codes\n\nConstants for standard HTTP response status codes that indicate whether a specific HTTP request has been successfully completed.\n\nBased on [MDN web docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).\n\n## Installation\n\n```console\nnpm i http-response-status-codes\n```\n\n## Usage (express.js example)\n\n```javascript\nconst HTTP_STATUS = require('http-response-status-codes');\n\napp.get('/ping', (req, res) =\u003e {\n  res.status(HTTP_STATUS.SUCCESS.OK).send('Pong');\n});\n\napp.get('/account', (req, res) =\u003e {\n  res.status(HTTP_STATUS.CLIENT.UNAUTHORIZED).send('Pong');\n});\n\napp.get('/calculate', (req, res) =\u003e {\n  res.status(HTTP_STATUS.SERVER.INTERNAL_SERVER_ERROR).send('Pong');\n});\n```\n\n## Codes\n\n\u003ctable\u003e\n\n\u003ctr\u003e\u003cth\u003eResponse Class\u003c/th\u003e\u003cth\u003eConstant Name\u003c/th\u003e\u003cth\u003eStatus Code\u003c/th\u003e\u003c/tr\u003e\n\n\u003ctr\u003e\u003ctd rowspan=\"4\"\u003eINFORMATION\u003c/td\u003e\u003ctd\u003eCONTINUE\u003c/td\u003e\u003ctd\u003e100\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eSWITCHING_PROTOCOL\u003c/td\u003e\u003ctd\u003e101\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePROCESSING\u003c/td\u003e\u003ctd\u003e102\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eEARLY_HINTS\u003c/td\u003e\u003ctd\u003e103\u003c/td\u003e\u003c/tr\u003e\n\n\u003ctr\u003e\u003ctd rowspan=\"9\"\u003eSUCCESS\u003c/td\u003e\u003ctd\u003eOK\u003c/td\u003e\u003ctd\u003e200\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eACCEPTED\u003c/td\u003e\u003ctd\u003e201\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNON_AUTHORITATIVE_INFORMATION\u003c/td\u003e\u003ctd\u003e203\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNO_CONTENT\u003c/td\u003e\u003ctd\u003e204\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eRESET_CONTENT\u003c/td\u003e\u003ctd\u003e205\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePARTIAL_CONTENT\u003c/td\u003e\u003ctd\u003e206\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eMULTI_STATUS\u003c/td\u003e\u003ctd\u003e207\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eALREADY_IMPORTED\u003c/td\u003e\u003ctd\u003e208\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eIM_USED\u003c/td\u003e\u003ctd\u003e226\u003c/td\u003e\u003c/tr\u003e\n\n\u003ctr\u003e\u003ctd rowspan=\"9\"\u003eREDIRECTION\u003c/td\u003e\u003ctd\u003eMULTIPLE_CHOICE\u003c/td\u003e\u003ctd\u003e300\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eMOVED_PERMANENTLY\u003c/td\u003e\u003ctd\u003e301\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eFOUND\u003c/td\u003e\u003ctd\u003e302\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eSEE_OTHER\u003c/td\u003e\u003ctd\u003e303\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNOT_MODIFIED\u003c/td\u003e\u003ctd\u003e304\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUSE_PROXY\u003c/td\u003e\u003ctd\u003e305\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUNUSED\u003c/td\u003e\u003ctd\u003e306\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eTEMPORARY_REDIRECT\u003c/td\u003e\u003ctd\u003e307\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePERMANENT_REDIRECT\u003c/td\u003e\u003ctd\u003e308\u003c/td\u003e\u003c/tr\u003e\n\n\u003ctr\u003e\u003ctd rowspan=\"29\"\u003eCLIENT\u003c/td\u003e\u003ctd\u003eBAD_REQUEST\u003c/td\u003e\u003ctd\u003e400\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUNAUTHORIZED\u003c/td\u003e\u003ctd\u003e401\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePAYMENT_REQUIRED\u003c/td\u003e\u003ctd\u003e402\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eFORBIDDEN\u003c/td\u003e\u003ctd\u003e403\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNOT_FOUND\u003c/td\u003e\u003ctd\u003e404\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eMETHOD_NOT_ALLOWED\u003c/td\u003e\u003ctd\u003e405\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNOT_ACCEPTABLE\u003c/td\u003e\u003ctd\u003e406\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePROXY_AUTHENTICATION_REQUIRED\u003c/td\u003e\u003ctd\u003e407\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eREQUEST_TIMEOUT\u003c/td\u003e\u003ctd\u003e408\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eCONFLICT\u003c/td\u003e\u003ctd\u003e409\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eGONE\u003c/td\u003e\u003ctd\u003e410\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eLENGTH_REQUIRED\u003c/td\u003e\u003ctd\u003e411\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePRECONDITION_FAILED\u003c/td\u003e\u003ctd\u003e412\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePAYLOAD_TOO_LARGE\u003c/td\u003e\u003ctd\u003e413\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eURI_TOO_LONG\u003c/td\u003e\u003ctd\u003e414\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUNSUPPORTED_MEDIA_TYPE\u003c/td\u003e\u003ctd\u003e415\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eRANGE_NOT_SATISFIABLE\u003c/td\u003e\u003ctd\u003e416\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eEXPECTATION_FAILED\u003c/td\u003e\u003ctd\u003e417\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eI_AM_A_TEAPOT\u003c/td\u003e\u003ctd\u003e418\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eMISDIRECTED_REQUEST\u003c/td\u003e\u003ctd\u003e421\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUNPROCESSABLE_ENTITY\u003c/td\u003e\u003ctd\u003e422\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eLOCKED\u003c/td\u003e\u003ctd\u003e423\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eFAILED_DEPENDENCY\u003c/td\u003e\u003ctd\u003e424\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eTOO_EARLY\u003c/td\u003e\u003ctd\u003e425\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUPGRADE_REQUIRED\u003c/td\u003e\u003ctd\u003e426\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePRECONDITION_REQUIRED\u003c/td\u003e\u003ctd\u003e428\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eTOO_MANY_REQUESTS\u003c/td\u003e\u003ctd\u003e429\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eREQUEST_HEADER_FIELDS_TOO_LARGE\u003c/td\u003e\u003ctd\u003e431\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eUNAVAILABLE_FOR_LEGAL_REASONS\u003c/td\u003e\u003ctd\u003e451\u003c/td\u003e\u003c/tr\u003e\n\n\u003ctr\u003e\u003ctd rowspan=\"11\"\u003eSERVER\u003c/td\u003e\u003ctd\u003eINTERNAL_SERVER_ERROR\u003c/td\u003e\u003ctd\u003e500\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNOT_IMPLEMENTED\u003c/td\u003e\u003ctd\u003e501\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eBAD_GATEWAY\u003c/td\u003e\u003ctd\u003e502\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eSERVICE_UNAVAILABLE\u003c/td\u003e\u003ctd\u003e503\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eGATEWAY_TIMEOUT\u003c/td\u003e\u003ctd\u003e504\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eHTTP_VERSION_NOT_SUPPORTED\u003c/td\u003e\u003ctd\u003e505\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eVARIANT_ALSO_NEGOTIATES\u003c/td\u003e\u003ctd\u003e506\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eINSUFFICIENT_STORAGE\u003c/td\u003e\u003ctd\u003e507\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eLOOP_DETECTED\u003c/td\u003e\u003ctd\u003e508\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNOT_EXTENDED\u003c/td\u003e\u003ctd\u003e510\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eNETWORK_AUTHENTICATION_REQUIRED\u003c/td\u003e\u003ctd\u003e511\u003c/td\u003e\u003c/tr\u003e\n\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fhttp-response-status-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemse%2Fhttp-response-status-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fhttp-response-status-codes/lists"}