From: David Symonds Date: Fri, 24 Feb 2012 00:55:31 +0000 (+1100) Subject: net/http: add overlooked 418 status code, per RFC 2324. X-Git-Tag: weekly.2012-03-04~181 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5fb82d8cf600ad7388306a0bf9899dc2a93aaafa;p=gostls13.git net/http: add overlooked 418 status code, per RFC 2324. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/5688067 --- diff --git a/src/pkg/net/http/status.go b/src/pkg/net/http/status.go index b6e2d65c6a..5af0b77c42 100644 --- a/src/pkg/net/http/status.go +++ b/src/pkg/net/http/status.go @@ -43,6 +43,7 @@ const ( StatusUnsupportedMediaType = 415 StatusRequestedRangeNotSatisfiable = 416 StatusExpectationFailed = 417 + StatusTeapot = 418 StatusInternalServerError = 500 StatusNotImplemented = 501 @@ -90,6 +91,7 @@ var statusText = map[int]string{ StatusUnsupportedMediaType: "Unsupported Media Type", StatusRequestedRangeNotSatisfiable: "Requested Range Not Satisfiable", StatusExpectationFailed: "Expectation Failed", + StatusTeapot: "I'm a teapot", StatusInternalServerError: "Internal Server Error", StatusNotImplemented: "Not Implemented",