network-constants
Advanced tools
Comparing version 0.9.2 to 0.10.0
{ | ||
"name": "network-constants.js", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
22
http.js
@@ -34,5 +34,5 @@ // if node.js : use amdefine (add it with npm) | ||
// 200 : success | ||
status_200_ok: 200, | ||
status_200_ok: 200, // success, a response is returned | ||
status_201_created: 201, | ||
status_204_ok_no_content: 204, | ||
status_204_ok_no_content: 204, // success, with nothing special to return (ex. delete) | ||
@@ -42,8 +42,10 @@ // 300 redirection | ||
// 400 : Client errors | ||
status_400_client_error_bad_request: 400, | ||
status_401_client_unauthorized: 401, | ||
status_403_client_forbidden: 403, | ||
status_404_client_error_not_found: 404, | ||
status_405_client_error_method_not_allowed: 405, | ||
status_414_client_error_request_uri_too_long: 414, | ||
status_400_client_error_bad_request: 400, | ||
status_401_client_unauthorized: 401, | ||
status_403_client_forbidden: 403, // used when the server doesn't want to explain why it refused the request | ||
status_404_client_error_not_found: 404, | ||
status_405_client_error_method_not_allowed: 405, // method not supported for this url | ||
status_406_client_error_not_acceptable: 406, // content type is not handled | ||
status_413_client_error_request_entity_too_large: 413, | ||
status_414_client_error_request_uri_too_long: 414, | ||
@@ -54,3 +56,3 @@ // 500 : Server error | ||
status_502_bad_gateway: 502, | ||
status_503_client_forbidden: 503, | ||
status_503_service_unavailable: 503, // maybe temporary overloading | ||
status_504_server_error_gateway_timeout: 504, | ||
@@ -73,2 +75,4 @@ status_507_insufficient_storage: 507 | ||
405 : "Method Not Allowed", | ||
406 : "Not Acceptable", | ||
413 : "Request Entity Too Large", | ||
414 : "Request-URI Too Long", | ||
@@ -75,0 +79,0 @@ |
{ | ||
"name": "network-constants", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD", | ||
@@ -5,0 +5,0 @@ "keywords": "network, constants, http, protocol, browser, server", |
@@ -7,4 +7,9 @@ network-constants.js | ||
[![Bower version](https://badge.fury.io/bo/network-constants.js.png)](http://badge.fury.io/bo/network-constants.js) | ||
[![Dependency Status](https://gemnasium.com/Offirmo/network-constants.js.png)](https://gemnasium.com/Offirmo/network-constants.js) | ||
[![Project status](http://img.shields.io/badge/project_status-stable_and_active-brightgreen.png)](http://offirmo.net/classifying-open-source-projects-status/) | ||
[![license](http://img.shields.io/badge/license-public_domain-brightgreen.png)](http://unlicense.org/) | ||
[![Code Climate](https://codeclimate.com/github/Offirmo/network-constants.js.png)](https://codeclimate.com/github/Offirmo/network-constants.js) | ||
[![status](https://sourcegraph.com/api/repos/github.com/Offirmo/network-constants.js/badges/status.png)](https://sourcegraph.com/github.com/Offirmo/network-constants.js) | ||
[![Total views](https://sourcegraph.com/api/repos/github.com/Offirmo/network-constants.js/counters/views.png)](https://sourcegraph.com/github.com/Offirmo/network-constants.js) | ||
[![Gittip](http://img.shields.io/gittip/Offirmo.png)](https://www.gittip.com/Offirmo/) | ||
@@ -22,2 +27,4 @@ Introduction | ||
License : public domain (http://unlicense.org/) | ||
Fell free to suggest and contribute. | ||
@@ -24,0 +31,0 @@ |
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
21883
316
58