Skip to content

Commit

Permalink
http: 451 status code "Unavailable For Legal Reasons"
Browse files Browse the repository at this point in the history
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: nodejs#4376
  • Loading branch information
mbarinov committed Dec 21, 2015
1 parent 14f81a0 commit a9e260a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a9e260a

Please sign in to comment.