🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

http-status-codes

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-status-codes

Constants enumerating the HTTP status codes. Based on the Java Apache HttpStatus API.

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
3M
-3.53%
Maintainers
1
Weekly downloads
 
Created
Source

http-status-codes

Constants enumerating the HTTP status codes. Based on the Java Apache HttpStatus API.

All status codes defined in RFC1945 (HTTP/1.0, RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.

####Installation

npm install http-status-codes

####Usage

HttpStatus = require('httpstatus');

response.send(HttpStatus.OK);
response.send(
	HttpStatus.INTERNAL_SERVER_ERROR, 
	{ error: HttpStatus.getStatusText(HttpStatus.INTERNAL_SERVER_ERROR) }
);

Keywords

node

FAQs

Package last updated on 14 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts