Created
June 15, 2012 22:42
-
-
Save jmcvetta/2939056 to your computer and use it in GitHub Desktop.
HTTP 451 support in Golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/pkg/net/http/status.go b/src/pkg/net/http/status.go | |
--- a/src/pkg/net/http/status.go | |
+++ b/src/pkg/net/http/status.go | |
@@ -44,6 +44,7 @@ | |
StatusRequestedRangeNotSatisfiable = 416 | |
StatusExpectationFailed = 417 | |
StatusTeapot = 418 | |
+ StatusCensored = 451 | |
StatusInternalServerError = 500 | |
StatusNotImplemented = 501 | |
@@ -92,6 +93,7 @@ | |
StatusRequestedRangeNotSatisfiable: "Requested Range Not Satisfiable", | |
StatusExpectationFailed: "Expectation Failed", | |
StatusTeapot: "I'm a teapot", | |
+ StatusCensored: "Unavailable For Legal Reasons", | |
StatusInternalServerError: "Internal Server Error", | |
StatusNotImplemented: "Not Implemented", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per Tim Bray's draft proposal: http://www.tbray.org/tmp/draft-tbray-http-legally-restricted-status.html