mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04: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:
1 parent
2fd3d8aee6
commit
1c5d4f2453
2 files changed
+3
-2
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user