From a9e260aa682b4a0d26a5ff5d4e3e763e0eae6941 Mon Sep 17 00:00:00 2001 From: Max Barinov Date: Mon, 21 Dec 2015 16:00:16 +0300 Subject: [PATCH] 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 --- lib/_http_server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/_http_server.js b/lib/_http_server.js index e2221b759bd0c4..f524790fb2b13a 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -65,6 +65,7 @@ const STATUS_CODES = exports.STATUS_CODES = { 428 : 'Precondition Required', // RFC 6585 429 : 'Too Many Requests', // RFC 6585 431 : 'Request Header Fields Too Large',// RFC 6585 + 451 : 'Unavailable For Legal Reasons', 500 : 'Internal Server Error', 501 : 'Not Implemented', 502 : 'Bad Gateway',