http-status-codes
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -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, |
{ | ||
"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 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113977
2256
136