mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
http: 451 status code "Unavailable For Legal Reasons"
This http code allows us to provide a fair reason when we can't return some data to the client by legal issues. IETF https://datatracker.ietf.org/doc/draft-ietf-httpbis-legally-restricted-status/ Fixes: #4376 PR-URL: https://github.com/nodejs/node/pull/4377 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
2fd3d8aee6
commit
1c5d4f2453
2 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@ var http = require('http');
|
|||
// ServerResponse.prototype.statusCode
|
||||
|
||||
var testsComplete = 0;
|
||||
var tests = [200, 202, 300, 404, 500];
|
||||
var tests = [200, 202, 300, 404, 451, 500];
|
||||
var testIdx = 0;
|
||||
|
||||
var s = http.createServer(function(req, res) {
|
||||
|
@ -42,6 +42,6 @@ function nextTest() {
|
|||
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.equal(4, testsComplete);
|
||||
assert.equal(5, testsComplete);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue