Skip to content

Commit

Permalink
update depdendencies and fix npm run command
Browse files Browse the repository at this point in the history
  • Loading branch information
didiercolens committed Jan 17, 2018
1 parent 80a6918 commit 0b08447
Show file tree
Hide file tree
Showing 37 changed files with 39 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This repo contains one json files per http error, with the following schema:
Those files can be re-generated as follow (assuming you have nodejs installed):
```shell
npm install
npm run
npm run build
```
(`npm install` should be run once only.)

Expand Down
2 changes: 1 addition & 1 deletion nginx-errors/400.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Bad Request: indicates that the server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.1","code":"400"}
{"message":"Bad Request: indicates that the server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.1","code":"400"}
2 changes: 1 addition & 1 deletion nginx-errors/401.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Unauthorized: indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.","link":"http://tools.ietf.org/html/rfc7235#section-3.1","code":"401"}
{"message":"Unauthorized: indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.","link":"https://tools.ietf.org/html/rfc7235#section-3.1","code":"401"}
2 changes: 1 addition & 1 deletion nginx-errors/402.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Payment Required: reserved","link":"http://tools.ietf.org/html/rfc7231#section-6.5.2","code":"402"}
{"message":"Payment Required: reserved","link":"https://tools.ietf.org/html/rfc7231#section-6.5.2","code":"402"}
2 changes: 1 addition & 1 deletion nginx-errors/403.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Forbidden: indicates that the server understood the request but refuses to authorize it.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.3","code":"403"}
{"message":"Forbidden: indicates that the server understood the request but refuses to authorize it.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.3","code":"403"}
2 changes: 1 addition & 1 deletion nginx-errors/404.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Not Found: indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.4","code":"404"}
{"message":"Not Found: indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.4","code":"404"}
2 changes: 1 addition & 1 deletion nginx-errors/405.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Method Not Allowed: indicates that the method specified in the request-line is known by the origin server but not supported by the target resource.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.5","code":"405"}
{"message":"Method Not Allowed: indicates that the method specified in the request-line is known by the origin server but not supported by the target resource.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.5","code":"405"}
2 changes: 1 addition & 1 deletion nginx-errors/406.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Not Acceptable: indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.6","code":"406"}
{"message":"Not Acceptable: indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.6","code":"406"}
2 changes: 1 addition & 1 deletion nginx-errors/407.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Proxy Authentication Required: is similar to 401 (Unauthorized), but indicates that the client needs to authenticate itself in order to use a proxy.","link":"http://tools.ietf.org/html/rfc7231#section-6.3.2","code":"407"}
{"message":"Proxy Authentication Required: is similar to 401 (Unauthorized), but indicates that the client needs to authenticate itself in order to use a proxy.","link":"https://tools.ietf.org/html/rfc7235#section-3.2","code":"407"}
2 changes: 1 addition & 1 deletion nginx-errors/408.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Request Timeout: indicates that the server did not receive a complete request message within the time that it was prepared to wait.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.7","code":"408"}
{"message":"Request Timeout: indicates that the server did not receive a complete request message within the time that it was prepared to wait.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.7","code":"408"}
2 changes: 1 addition & 1 deletion nginx-errors/409.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Conflict: indicates that the request could not be completed due to a conflict with the current state of the resource.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.8","code":"409"}
{"message":"Conflict: indicates that the request could not be completed due to a conflict with the current state of the resource.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.8","code":"409"}
2 changes: 1 addition & 1 deletion nginx-errors/410.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Gone: indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.9","code":"410"}
{"message":"Gone: indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.9","code":"410"}
2 changes: 1 addition & 1 deletion nginx-errors/411.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Length Required: indicates that the server refuses to accept the request without a defined Content-Length.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.10","code":"411"}
{"message":"Length Required: indicates that the server refuses to accept the request without a defined Content-Length.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.10","code":"411"}
2 changes: 1 addition & 1 deletion nginx-errors/412.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Precondition Failed: indicates that one or more preconditions given in the request header fields evaluated to false when tested on the server.","link":"http://tools.ietf.org/html/rfc7232#section-4.2","code":"412"}
{"message":"Precondition Failed: indicates that one or more preconditions given in the request header fields evaluated to false when tested on the server.","link":"https://tools.ietf.org/html/rfc7232#section-4.2","code":"412"}
2 changes: 1 addition & 1 deletion nginx-errors/413.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Payload Too Large: indicates that the server is refusing to process a request because the request payload is larger than the server is willing or able to process.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.11","code":"413"}
{"message":"Payload Too Large: indicates that the server is refusing to process a request because the request payload is larger than the server is willing or able to process.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.11","code":"413"}
2 changes: 1 addition & 1 deletion nginx-errors/414.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"URI Too Long: indicates that the server is refusing to service the request because the request-target is longer than the server is willing to interpret.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.12","code":"414"}
{"message":"URI Too Long: indicates that the server is refusing to service the request because the request-target is longer than the server is willing to interpret.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.12","code":"414"}
2 changes: 1 addition & 1 deletion nginx-errors/415.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Unsupported Media Type: indicates that the origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.13","code":"415"}
{"message":"Unsupported Media Type: indicates that the origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.13","code":"415"}
2 changes: 1 addition & 1 deletion nginx-errors/416.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Range Not Satisfiable: indicates that none of the ranges in the request's Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges.","link":"http://tools.ietf.org/html/rfc7233#section-4.4","code":"416"}
{"message":"Range Not Satisfiable: indicates that none of the ranges in the request's Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges.","link":"https://tools.ietf.org/html/rfc7233#section-4.4","code":"416"}
2 changes: 1 addition & 1 deletion nginx-errors/417.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Expectation Failed: indicates that the expectation given in the request's Expect header field could not be met by at least one of the inbound servers.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.14","code":"417"}
{"message":"Expectation Failed: indicates that the expectation given in the request's Expect header field could not be met by at least one of the inbound servers.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.14","code":"417"}
2 changes: 1 addition & 1 deletion nginx-errors/422.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Unprocessable Entity: means the server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.","link":"http://tools.ietf.org/html/rfc2518#section-10.3","code":"422"}
{"message":"Unprocessable Entity: means the server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.","link":"https://tools.ietf.org/html/rfc2518#section-10.3","code":"422"}
2 changes: 1 addition & 1 deletion nginx-errors/423.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Locked: means the source or destination resource of a method is locked.","link":"http://tools.ietf.org/html/rfc2518#section-10.4","code":"423"}
{"message":"Locked: means the source or destination resource of a method is locked.","link":"https://tools.ietf.org/html/rfc2518#section-10.4","code":"423"}
2 changes: 1 addition & 1 deletion nginx-errors/424.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Failed Dependency: means that the method could not be performed on the resource because the requested action depended on another action and that action failed.","link":"http://tools.ietf.org/html/rfc2518#section-10.5","code":"424"}
{"message":"Failed Dependency: means that the method could not be performed on the resource because the requested action depended on another action and that action failed.","link":"https://tools.ietf.org/html/rfc2518#section-10.5","code":"424"}
2 changes: 1 addition & 1 deletion nginx-errors/426.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Upgrade Required: indicates that the server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.","link":"http://tools.ietf.org/html/rfc7231#section-6.5.15","code":"426"}
{"message":"Upgrade Required: indicates that the server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.","link":"https://tools.ietf.org/html/rfc7231#section-6.5.15","code":"426"}
2 changes: 1 addition & 1 deletion nginx-errors/428.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Precondition Required: indicates that the origin server requires the request to be conditional.","link":"http://tools.ietf.org/html/rfc6585#section-3","code":"428"}
{"message":"Precondition Required: indicates that the origin server requires the request to be conditional.","link":"https://tools.ietf.org/html/rfc6585#section-3","code":"428"}
2 changes: 1 addition & 1 deletion nginx-errors/429.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Too Many Requests: indicates that the user has sent too many requests in a given amount of time (\"rate limiting\").","link":"http://tools.ietf.org/html/rfc6585#section-4","code":"429"}
{"message":"Too Many Requests: indicates that the user has sent too many requests in a given amount of time (\"rate limiting\").","link":"https://tools.ietf.org/html/rfc6585#section-4","code":"429"}
2 changes: 1 addition & 1 deletion nginx-errors/431.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Request Header Fields Too Large: indicates that the server is unwilling to process the request because its header fields are too large.","link":"http://tools.ietf.org/html/rfc6585#section-5","code":"431"}
{"message":"Request Header Fields Too Large: indicates that the server is unwilling to process the request because its header fields are too large.","link":"https://tools.ietf.org/html/rfc6585#section-5","code":"431"}
2 changes: 1 addition & 1 deletion nginx-errors/451.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Unavailable For Legal Reasons: This status code indicates that the server is denying access to the resource in response to a legal demand.","link":"http://tools.ietf.org/html/draft-tbray-http-legally-restricted-status","code":"451"}
{"message":"Unavailable For Legal Reasons: This status code indicates that the server is denying access to the resource in response to a legal demand.","link":"https://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status","code":"451"}
2 changes: 1 addition & 1 deletion nginx-errors/500.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Internal Server Error: indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.","link":"http://tools.ietf.org/html/rfc7231#section-6.6.1","code":"500"}
{"message":"Internal Server Error: indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.","link":"https://tools.ietf.org/html/rfc7231#section-6.6.1","code":"500"}
2 changes: 1 addition & 1 deletion nginx-errors/501.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Not Implemented: indicates that the server does not support the functionality required to fulfill the request.","link":"http://tools.ietf.org/html/rfc7231#section-6.6.2","code":"501"}
{"message":"Not Implemented: indicates that the server does not support the functionality required to fulfill the request.","link":"https://tools.ietf.org/html/rfc7231#section-6.6.2","code":"501"}
2 changes: 1 addition & 1 deletion nginx-errors/502.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Bad Gateway: indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.","link":"http://tools.ietf.org/html/rfc7231#section-6.6.3","code":"502"}
{"message":"Bad Gateway: indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.","link":"https://tools.ietf.org/html/rfc7231#section-6.6.3","code":"502"}
2 changes: 1 addition & 1 deletion nginx-errors/503.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Service Unavailable: indicates that the server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.","link":"http://tools.ietf.org/html/rfc7231#section-6.6.4","code":"503"}
{"message":"Service Unavailable: indicates that the server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.","link":"https://tools.ietf.org/html/rfc7231#section-6.6.4","code":"503"}
2 changes: 1 addition & 1 deletion nginx-errors/504.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Gateway Time-out: indicates that the server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.","link":"http://tools.ietf.org/html/rfc7231#section-6.6.5","code":"504"}
{"message":"Gateway Time-out: indicates that the server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.","link":"https://tools.ietf.org/html/rfc7231#section-6.6.5","code":"504"}
2 changes: 1 addition & 1 deletion nginx-errors/505.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"HTTP Version Not Supported: indicates that the server does not support, or refuses to support, the protocol version that was used in the request message.","link":"http://tools.ietf.org/html/rfc7231#section-6.6.6","code":"505"}
{"message":"HTTP Version Not Supported: indicates that the server does not support, or refuses to support, the protocol version that was used in the request message.","link":"https://tools.ietf.org/html/rfc7231#section-6.6.6","code":"505"}
2 changes: 1 addition & 1 deletion nginx-errors/506.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Variant Also Negotiates: indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.","link":"http://tools.ietf.org/html/rfc2295#section-8.1","code":"506"}
{"message":"Variant Also Negotiates: indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.","link":"https://tools.ietf.org/html/rfc2295#section-8.1","code":"506"}
2 changes: 1 addition & 1 deletion nginx-errors/507.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Insufficient Storage: means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.","link":"http://tools.ietf.org/html/rfc2518#section-10.6","code":"507"}
{"message":"Insufficient Storage: means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.","link":"https://tools.ietf.org/html/rfc2518#section-10.6","code":"507"}
2 changes: 1 addition & 1 deletion nginx-errors/511.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"Network Authentication Required: indicates that the client needs to authenticate to gain network access.","link":"http://tools.ietf.org/html/rfc6585#section-6","code":"511"}
{"message":"Network Authentication Required: indicates that the client needs to authenticate to gain network access.","link":"https://tools.ietf.org/html/rfc6585#section-6","code":"511"}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Generates files and config for nginx to return errors in json format",
"main": "index.js",
"scripts": {
"build": "node index.js"
},
"keywords": [
"nginx",
Expand All @@ -16,7 +17,7 @@
"author": "Didier Colens",
"license": "MIT",
"dependencies": {
"know-your-http-well": "^0.2.0",
"rimraf": "^2.5.2"
"know-your-http-well": "^0.5.0",
"rimraf": "^2.6.2"
}
}

0 comments on commit 0b08447

Please sign in to comment.