| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2fd3d8a commit 1c5d4f2
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,6 +65,7 @@ const STATUS_CODES = exports.STATUS_CODES = { | |||
| 65 | 65 | 428 : 'Precondition Required', // RFC 6585 | |
| 66 | 66 | 429 : 'Too Many Requests', // RFC 6585 | |
| 67 | 67 | 431 : 'Request Header Fields Too Large',// RFC 6585 | |
| 68 | + 451 : 'Unavailable For Legal Reasons', | ||
| 68 | 69 | 500 : 'Internal Server Error', | |
| 69 | 70 | 501 : 'Not Implemented', | |
| 70 | 71 | 502 : 'Bad Gateway', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ var http = require('http'); | |||
| 7 | 7 | // ServerResponse.prototype.statusCode | |
| 8 | 8 | ||
| 9 | 9 | var testsComplete = 0; | |
| 10 | - var tests = [200, 202, 300, 404, 500]; | ||
| 10 | + var tests = [200, 202, 300, 404, 451, 500]; | ||
| 11 | 11 | var testIdx = 0; | |
| 12 | 12 | ||
| 13 | 13 | var s = http.createServer(function(req, res) { | |
@@ -42,6 +42,6 @@ function nextTest() { | |||
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | 44 | process.on('exit', function() { | |
| 45 | - assert.equal(4, testsComplete); | ||
| 45 | + assert.equal(5, testsComplete); | ||
| 46 | 46 | }); | |
| 47 | 47 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments