mirror of
https://github.com/golang/go
synced 2024-11-22 03:34:40 -07:00
net/http: add overlooked 418 status code, per RFC 2324.
R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/5688067
This commit is contained in:
parent
80a9783f84
commit
5fb82d8cf6
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user