diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-19 19:59:38 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-19 19:59:38 +0200 |
commit | 858fdcea4097fe7e88494798bfc072cbb7497905 (patch) | |
tree | 057b0d6a27428e13aeda7b282fa91ed8d09f1bf0 /status.go | |
parent | Typo fix (diff) | |
download | fasthttp-858fdcea4097fe7e88494798bfc072cbb7497905.tar.gz fasthttp-858fdcea4097fe7e88494798bfc072cbb7497905.tar.bz2 fasthttp-858fdcea4097fe7e88494798bfc072cbb7497905.zip |
Added new status codes from go1.6
Diffstat (limited to 'status.go')
-rw-r--r-- | status.go | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -45,13 +45,17 @@ const ( StatusRequestedRangeNotSatisfiable = 416 StatusExpectationFailed = 417 StatusTeapot = 418 - - StatusInternalServerError = 500 - StatusNotImplemented = 501 - StatusBadGateway = 502 - StatusServiceUnavailable = 503 - StatusGatewayTimeout = 504 - StatusHTTPVersionNotSupported = 505 + StatusPreconditionRequired = 428 + StatusTooManyRequests = 429 + StatusRequestHeaderFieldsTooLarge = 431 + + StatusInternalServerError = 500 + StatusNotImplemented = 501 + StatusBadGateway = 502 + StatusServiceUnavailable = 503 + StatusGatewayTimeout = 504 + StatusHTTPVersionNotSupported = 505 + StatusNetworkAuthenticationRequired = 511 ) var ( |