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...
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 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...
# Optional: install Typescript npm install -D typescript @types/node # Install the library npm install @gpa/http-status-codesRequirementsNode.js >= 18 typescript >= 5.0 (optional) Usageimport { HttpStatusCode, HttpErrorStatusCode, HttpSuccessfulStatusCode } from '@gpa/http-status-codes'; ...
npm install http-status --save This package provides a simple way to reference HTTP status codes by name: const express = require('express'); const httpStatus = require('http-status'); const app = express(); app.get('/success', (req, res) => { ...
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
npm Search Sign UpSign In Search results 857 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. ...
cdtests/server npm install node server.js With the server running, you can start testing: vendor/bin/phpunit Please seeCHANGELOGfor more information on what has changed recently. Please seeCONTRIBUTINGfor details. If you've found a bug regarding security please mailsecurity@spatie.beinstead of usi...