Socket
Socket
Sign inDemoInstall

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 - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

12

build/index.d.ts

@@ -614,2 +614,8 @@ import { StatusCodes, ReasonPhrases } from './codes';

/**
* Official Documentation @ https://tools.ietf.org/html/rfc7725
*
* The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
*/
UNAVAILABLE_FOR_LEGAL_REASONS = 451,
/**
* Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3

@@ -947,2 +953,8 @@ *

/**
* Official Documentation @ https://tools.ietf.org/html/rfc7725
*
* The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
*/
UNAVAILABLE_FOR_LEGAL_REASONS = "Unavailable For Legal Reasons",
/**
* Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3

@@ -949,0 +961,0 @@ *

@@ -376,2 +376,8 @@ module.exports =

/**
* Official Documentation @ https://tools.ietf.org/html/rfc7725
*
* The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
*/
StatusCodes[StatusCodes["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
/**
* Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3

@@ -710,2 +716,8 @@ *

/**
* Official Documentation @ https://tools.ietf.org/html/rfc7725
*
* The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
*/
ReasonPhrases["UNAVAILABLE_FOR_LEGAL_REASONS"] = "Unavailable For Legal Reasons";
/**
* Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3

@@ -782,2 +794,3 @@ *

"401": "Unauthorized",
"451": "Unavailable For Legal Reasons",
"422": "Unprocessable Entity",

@@ -839,2 +852,3 @@ "415": "Unsupported Media Type",

"Unauthorized": 401,
"Unavailable For Legal Reasons": 451,
"Unprocessable Entity": 422,

@@ -841,0 +855,0 @@ "Unsupported Media Type": 415,

2

package.json
{
"name": "http-status-codes",
"version": "2.0.0",
"version": "2.1.0",
"description": "Constants enumerating the HTTP status codes. Based on the Java Apache HttpStatus API.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -92,2 +92,3 @@ # http-status-codes

| 431 | REQUEST_HEADER_FIELDS_TOO_LARGE | Request Header Fields Too Large |
| 451 | UNAVAILABLE_FOR_LEGAL_REASONS | Unavailable For Legal Reasons |
| 500 | INTERNAL_SERVER_ERROR | Internal Server Error |

@@ -134,3 +135,3 @@ | 501 | NOT_IMPLEMENTED | Not Implemented |

npm version [major | minor | patch]
npm run publish
npm publish
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc