Constants enumerating the HTTP status codes. Based on the Java Apache HttpStatus API.. Latest version: 2.3.0, last published: a year ago. Start using http-status-codes in your project by running `npm i http-status-codes`. There are 2864 other projects in
📚 快速使用 只需要运行以下任意一条命令来正常安装,具体的安装命令以你当前项目中的依赖环境为准,默认使用 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...
Learn all about the quality, security, and current maintenance status of @types/http-status-codes using Cloudsmith Navigator
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 i http-response-status-codes Usage (express.js example) const HTTP_STATUS = require('http-response-status-codes'); app.get('/ping', (req, res) => { res.status(HTTP_STATUS.SUCCESS.OK).send('Pong'); }); app.get('/account', (req, res) => { res.status(HTTP_STATUS.CLIENT....
HTTP status codes i18n. Latest version: 1.5.2, last published: 5 months ago. Start using @http-status-codes/i18n-zh-hant in your project by running `npm i @http-status-codes/i18n-zh-hant`. There are no other projects in the npm registry using @http-statu
HTTP status code rampantmonkey •3.0.0•9 years ago•8dependentspublished version3.0.0,9 years ago8dependents 50 http-status-descriptions A npm package that provides human-readable descriptions for HTTP status codes. usmanmuhammad •1.0.9•9 months ago•0dependents•MITpublished version...
$ 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#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. ...
HTTP status codes i18n. Latest version: 1.5.2, last published: 5 months ago. Start using @http-status-codes/i18n-vi in your project by running `npm i @http-status-codes/i18n-vi`. There are no other projects in the npm registry using @http-status-codes/i1