Constants enumerating the HTTP status codes. Based on the Java Apache HttpStatus API.. Latest version: 2.3.0, last published: 2 years ago. Start using http-status-codes in your project by running `npm i http-status-codes`. There are 2961 other projects i
📚 快速使用 只需要运行以下任意一条命令来正常安装,具体的安装命令以你当前项目中的依赖环境为准,默认使用 npm。 npm install @http-status-codes/i18n-zh yarn add @http-status-codes/i18n-zh pnpm i @http-status-codes/i18n-zh import{getSimpleStatusMessage,getStatusMessage,getStatusText,}from"@http-s...
Docker x Cloudsmith Webinar: Modern security approaches for the Software Supply Chain @types/http-status-codes 1.2.0last stable release7 years ago Submit Feedback See onNPM Install Complexity Score N/A Open Issues N/A Dependent Projects
npm install http-status-codes --save Usage (express 4.x) import{ReasonPhrases,StatusCodes,getReasonPhrase,getStatusCode,}from'http-status-codes';response.status(StatusCodes.OK).send(ReasonPhrases.OK);response.status(StatusCodes.INTERNAL_SERVER_ERROR).send({error:getReasonPhrase(StatusCodes.INTERNAL...
$ npm install --save node-status-codes Usagevar nodeStatusCodes = require('node-status-codes'); console.log(nodeStatusCodes[200]); //=> 'OK' console.log(nodeStatusCodes[500]); //=> 'Internal Server Error'LicenseMIT © Sindre Sorhus...
npm install @http-status-codes/i18n-zh-hant yarn add @http-status-codes/i18n-zh-hant pnpm i @http-status-codes/i18n-zh-hantimport { 取得簡單狀態訊息, 取得狀態訊息, 取得狀態文字, } 從 "@http-status-codes/i18n-zh-hant"; 取得狀態文字(HttpStatusCode.OK) // OK 取得簡單狀態訊息(Http...
npm Search Sign UpSign In Search results 865 packages found Sort by: Default Default Most downloaded this week Most downloaded this month Most dependents Recently published http-status-message A utility for generating user-friendly messages based on HTTP status codes and message tone. ...
npm install#oryarn Then, run the development server: npm run dev#oryarn dev Openhttp://localhost:3000with your browser to see the result. You can start editing the page by modifyingpages/index.js. The page auto-updates as you edit the file. ...
$ npm install http-assert Example varassert=require('http-assert')varok=require('assert')varusername='foobar'// username from requesttry{assert(username==='fjodor',401,'authentication failed')}catch(err){ok(err.status===401)ok(err.message==='authentication failed')ok(err.expose)} ...
npm install @http-status-codes/i18n-ar yarn add @http-status-codes/i18n-ar pnpm i @http-status-codes/i18n-ar استيراد { getSimpleStatusMessage، getStatusMessage، getStatusText، } من "@http-status-codes/i18n-ar"; ...