mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-10-04 15:17:23 +02:00
Merge pull request #40 from idubinskiy/go-constants
Add Go status constants
This commit is contained in:
commit
952981df63
@ -4,6 +4,7 @@ code: 100
|
|||||||
title: Continue
|
title: Continue
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":continue"
|
"Rails HTTP Status Symbol": ":continue"
|
||||||
|
"Go HTTP Status Constant": "http.StatusContinue"
|
||||||
---
|
---
|
||||||
|
|
||||||
The initial part of a request has been received and has not yet been rejected by
|
The initial part of a request has been received and has not yet been rejected by
|
||||||
@ -24,4 +25,4 @@ If the request did not contain an Expect header field containing the
|
|||||||
* Source: [RFC7231 Section 6.1.1][1]
|
* Source: [RFC7231 Section 6.1.1][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.2.1>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.2.1>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-5.1.1>
|
[2]: <http://tools.ietf.org/html/rfc7231#section-5.1.1>
|
||||||
|
@ -4,6 +4,7 @@ code: 101
|
|||||||
title: Switching Protocols
|
title: Switching Protocols
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":switching_protocols"
|
"Rails HTTP Status Symbol": ":switching_protocols"
|
||||||
|
"Go HTTP Status Constant": "http.StatusSwitchingProtocols"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server understands and is willing to comply with the client's request, via
|
The server understands and is willing to comply with the client's request, via
|
||||||
@ -25,4 +26,4 @@ protocol might be advantageous when delivering resources that use such features.
|
|||||||
* Source: [RFC7231 Section 6.2.2][1]
|
* Source: [RFC7231 Section 6.2.2][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.2.2>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.2.2>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7230#section-6.7>
|
[2]: <http://tools.ietf.org/html/rfc7230#section-6.7>
|
||||||
|
@ -4,6 +4,7 @@ code: 200
|
|||||||
title: OK
|
title: OK
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":ok"
|
"Rails HTTP Status Symbol": ":ok"
|
||||||
|
"Go HTTP Status Constant": "http.StatusOK"
|
||||||
---
|
---
|
||||||
|
|
||||||
The request has succeeded.
|
The request has succeeded.
|
||||||
@ -35,4 +36,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 Section 6.3.1][1]
|
* Source: [RFC7231 Section 6.3.1][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.1>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.1>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 201
|
|||||||
title: Created
|
title: Created
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":created"
|
"Rails HTTP Status Symbol": ":created"
|
||||||
|
"Go HTTP Status Constant": "http.StatusCreated"
|
||||||
---
|
---
|
||||||
|
|
||||||
The request has been fulfilled and has resulted in one or more new resources
|
The request has been fulfilled and has resulted in one or more new resources
|
||||||
@ -23,4 +24,4 @@ response.
|
|||||||
* Source: [RFC7231 Section 6.3.2][1]
|
* Source: [RFC7231 Section 6.3.2][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.2>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.2>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-7.2
|
[2]: <http://tools.ietf.org/html/rfc7231#section-7.2
|
||||||
|
@ -4,6 +4,7 @@ code: 202
|
|||||||
title: Accepted
|
title: Accepted
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":accepted"
|
"Rails HTTP Status Symbol": ":accepted"
|
||||||
|
"Go HTTP Status Constant": "http.StatusAccepted"
|
||||||
---
|
---
|
||||||
|
|
||||||
The request has been accepted for processing, but the processing has not been
|
The request has been accepted for processing, but the processing has not been
|
||||||
@ -25,4 +26,4 @@ an estimate of when the request will be fulfilled.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.3.3][1]
|
* Source: [RFC7231 Section 6.3.3][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.3>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.3>
|
||||||
|
@ -4,6 +4,7 @@ code: 203
|
|||||||
title: Non-authoritative Information
|
title: Non-authoritative Information
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":non_authoritative_information"
|
"Rails HTTP Status Symbol": ":non_authoritative_information"
|
||||||
|
"Go HTTP Status Constant": "http.StatusNonAuthoritativeInfo"
|
||||||
---
|
---
|
||||||
|
|
||||||
The request was successful but the enclosed payload has been modified from that
|
The request was successful but the enclosed payload has been modified from that
|
||||||
|
@ -4,6 +4,7 @@ code: 204
|
|||||||
title: No Content
|
title: No Content
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":no_content"
|
"Rails HTTP Status Symbol": ":no_content"
|
||||||
|
"Go HTTP Status Constant": "http.StatusNoContent"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server has successfully fulfilled the request and that there is no
|
The server has successfully fulfilled the request and that there is no
|
||||||
@ -43,4 +44,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 Section 6.3.5][1]
|
* Source: [RFC7231 Section 6.3.5][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.5>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.5>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 205
|
|||||||
title: Reset Content
|
title: Reset Content
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":reset_content"
|
"Rails HTTP Status Symbol": ":reset_content"
|
||||||
|
"Go HTTP Status Constant": "http.StatusResetContent"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server has fulfilled the request and desires that the user agent reset the
|
The server has fulfilled the request and desires that the user agent reset the
|
||||||
@ -29,4 +30,4 @@ immediately after sending the blank line terminating the header section.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.3.6][1]
|
* Source: [RFC7231 Section 6.3.6][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.6>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.6>
|
||||||
|
@ -4,6 +4,7 @@ code: 206
|
|||||||
title: Partial Content
|
title: Partial Content
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":partial_content"
|
"Rails HTTP Status Symbol": ":partial_content"
|
||||||
|
"Go HTTP Status Constant": "http.StatusPartialContent"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server is successfully fulfilling a range request for the target resource by
|
The server is successfully fulfilling a range request for the target resource by
|
||||||
|
@ -4,6 +4,7 @@ code: 300
|
|||||||
title: Multiple Choices
|
title: Multiple Choices
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":multiple_choices"
|
"Rails HTTP Status Symbol": ":multiple_choices"
|
||||||
|
"Go HTTP Status Constant": "http.StatusMultipleChoices"
|
||||||
---
|
---
|
||||||
|
|
||||||
The target resource has more than one representation, each with its own more
|
The target resource has more than one representation, each with its own more
|
||||||
@ -53,4 +54,4 @@ though deployment is a chicken-and-egg problem.
|
|||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.1>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.1>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-3.4>
|
[2]: <http://tools.ietf.org/html/rfc7231#section-3.4>
|
||||||
[3]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[3]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
[4]: <http://tools.ietf.org/html/rfc5988>
|
[4]: <http://tools.ietf.org/html/rfc5988>
|
||||||
|
@ -4,6 +4,7 @@ code: 301
|
|||||||
title: Moved Permanently
|
title: Moved Permanently
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":moved_permanently"
|
"Rails HTTP Status Symbol": ":moved_permanently"
|
||||||
|
"Go HTTP Status Constant": "http.StatusMovedPermanently"
|
||||||
---
|
---
|
||||||
|
|
||||||
The target resource has been assigned a new permanent URI and any future
|
The target resource has been assigned a new permanent URI and any future
|
||||||
@ -32,4 +33,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 Section 6.4.2][1]
|
* Source: [RFC7231 Section 6.4.2][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.2>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.2>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 302
|
|||||||
title: Found
|
title: Found
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":found"
|
"Rails HTTP Status Symbol": ":found"
|
||||||
|
"Go HTTP Status Constant": "http.StatusFound"
|
||||||
---
|
---
|
||||||
|
|
||||||
The target resource resides temporarily under a different URI. Since the
|
The target resource resides temporarily under a different URI. Since the
|
||||||
@ -23,4 +24,4 @@ POST to GET for the subsequent request. If this behavior is undesired, the
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.4.3][1]
|
* Source: [RFC7231 Section 6.4.3][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.3>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.3>
|
||||||
|
@ -4,6 +4,7 @@ code: 303
|
|||||||
title: See Other
|
title: See Other
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":see_other"
|
"Rails HTTP Status Symbol": ":see_other"
|
||||||
|
"Go HTTP Status Constant": "http.StatusSeeOther"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server is redirecting the user agent to a different resource, as indicated
|
The server is redirecting the user agent to a different resource, as indicated
|
||||||
@ -39,4 +40,4 @@ reference provided in the Location header field.
|
|||||||
|
|
||||||
* Source: [RFC7321 Section 6.4.4][1]
|
* Source: [RFC7321 Section 6.4.4][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.4>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.4>
|
||||||
|
@ -4,6 +4,7 @@ code: 304
|
|||||||
title: Not Modified
|
title: Not Modified
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":not_modified"
|
"Rails HTTP Status Symbol": ":not_modified"
|
||||||
|
"Go HTTP Status Constant": "http.StatusNotModified"
|
||||||
---
|
---
|
||||||
|
|
||||||
A conditional GET or HEAD request has been received and would have resulted in a
|
A conditional GET or HEAD request has been received and would have resulted in a
|
||||||
@ -40,4 +41,4 @@ first empty line after the header fields.
|
|||||||
* Source: [RFC7232 Section 4.1][1]
|
* Source: [RFC7232 Section 4.1][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7232#section-4.1>
|
[1]: <http://tools.ietf.org/html/rfc7232#section-4.1>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.3.4>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.3.4>
|
||||||
|
@ -4,6 +4,7 @@ code: 305
|
|||||||
title: Use Proxy
|
title: Use Proxy
|
||||||
#references:
|
#references:
|
||||||
# "Rails HTTP Status Symbol": "use_proxy"
|
# "Rails HTTP Status Symbol": "use_proxy"
|
||||||
|
# "Go HTTP Status Constant": "http.StatusUseProxy"
|
||||||
# - Due to deprecation we won't show this... but should we?
|
# - Due to deprecation we won't show this... but should we?
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -14,4 +15,4 @@ to security concerns regarding in-band configuration of a proxy.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.4.5][1]
|
* Source: [RFC7231 Section 6.4.5][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.5>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.5>
|
||||||
|
@ -4,6 +4,7 @@ code: 307
|
|||||||
title: Temporary Redirect
|
title: Temporary Redirect
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":temporary_redirect"
|
"Rails HTTP Status Symbol": ":temporary_redirect"
|
||||||
|
"Go HTTP Status Constant": "http.StatusTemporaryRedirect"
|
||||||
---
|
---
|
||||||
|
|
||||||
The target resource resides temporarily under a different URI and the user agent
|
The target resource resides temporarily under a different URI and the user agent
|
||||||
@ -28,4 +29,4 @@ proposes defining the status code [308 Permanent Redirect](/308) for this purpos
|
|||||||
* Source: [RFC7231 Section 6.4.7][1]
|
* Source: [RFC7231 Section 6.4.7][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.7>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.7>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7238>
|
[2]: <http://tools.ietf.org/html/rfc7238>
|
||||||
|
@ -4,6 +4,7 @@ code: 400
|
|||||||
title: Bad Request
|
title: Bad Request
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": "bad_request"
|
"Rails HTTP Status Symbol": "bad_request"
|
||||||
|
"Go HTTP Status Constant": "http.StatusBadRequest"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server cannot or will not process the request due to something that is
|
The server cannot or will not process the request due to something that is
|
||||||
@ -14,4 +15,4 @@ message framing, or deceptive request routing).
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.5.1][1]
|
* Source: [RFC7231 Section 6.5.1][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.1>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.1>
|
||||||
|
@ -4,6 +4,7 @@ code: 401
|
|||||||
title: Unauthorized
|
title: Unauthorized
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":unauthorized"
|
"Rails HTTP Status Symbol": ":unauthorized"
|
||||||
|
"Go HTTP Status Constant": "http.StatusUnauthorized"
|
||||||
---
|
---
|
||||||
|
|
||||||
The request has not been applied because it lacks valid authentication
|
The request has not been applied because it lacks valid authentication
|
||||||
@ -29,4 +30,4 @@ the user, since it usually contains relevant diagnostic information.
|
|||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7235#section-3.1>
|
[1]: <http://tools.ietf.org/html/rfc7235#section-3.1>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7235#section-4.1>
|
[2]: <http://tools.ietf.org/html/rfc7235#section-4.1>
|
||||||
[3]: <http://tools.ietf.org/html/rfc7235#section-4.2>
|
[3]: <http://tools.ietf.org/html/rfc7235#section-4.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 402
|
|||||||
title: Payment Required
|
title: Payment Required
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":payment_required"
|
"Rails HTTP Status Symbol": ":payment_required"
|
||||||
|
"Go HTTP Status Constant": "http.StatusPaymentRequired"
|
||||||
---
|
---
|
||||||
|
|
||||||
Reserved for future use.
|
Reserved for future use.
|
||||||
@ -12,4 +13,4 @@ Reserved for future use.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.5.2][1]
|
* Source: [RFC7231 Section 6.5.2][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.2>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 403
|
|||||||
title: Forbidden
|
title: Forbidden
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":forbidden"
|
"Rails HTTP Status Symbol": ":forbidden"
|
||||||
|
"Go HTTP Status Constant": "http.StatusForbidden"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server understood the request but refuses to authorize it.
|
The server understood the request but refuses to authorize it.
|
||||||
@ -25,4 +26,4 @@ target resource MAY instead respond with a status code of
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.5.3][1]
|
* Source: [RFC7231 Section 6.5.3][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.3>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.3>
|
||||||
|
@ -4,6 +4,7 @@ code: 404
|
|||||||
title: Not Found
|
title: Not Found
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":not_found"
|
"Rails HTTP Status Symbol": ":not_found"
|
||||||
|
"Go HTTP Status Constant": "http.StatusNotFound"
|
||||||
---
|
---
|
||||||
|
|
||||||
The origin server did not find a current representation for the target resource
|
The origin server did not find a current representation for the target resource
|
||||||
@ -24,4 +25,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 6.5.4][1]
|
* Source: [RFC7231 6.5.4][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.4>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.4>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 405
|
|||||||
title: Method Not Allowed
|
title: Method Not Allowed
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":method_not_allowed"
|
"Rails HTTP Status Symbol": ":method_not_allowed"
|
||||||
|
"Go HTTP Status Constant": "http.StatusMethodNotAllowed"
|
||||||
---
|
---
|
||||||
|
|
||||||
The method received in the request-line is known by the origin server but not
|
The method received in the request-line is known by the origin server but not
|
||||||
@ -22,4 +23,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 Section 6.5.5][1]
|
* Source: [RFC7231 Section 6.5.5][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.5>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.5>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 406
|
|||||||
title: Not Acceptable
|
title: Not Acceptable
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":not_acceptable"
|
"Rails HTTP Status Symbol": ":not_acceptable"
|
||||||
|
"Go HTTP Status Constant": "http.StatusNotAcceptable"
|
||||||
---
|
---
|
||||||
|
|
||||||
The target resource does not have a current representation that would be
|
The target resource does not have a current representation that would be
|
||||||
@ -26,4 +27,4 @@ described in [RFC7231 Section 6.4.1][3].
|
|||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.6>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.6>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-5.3>
|
[2]: <http://tools.ietf.org/html/rfc7231#section-5.3>
|
||||||
[3]: <http://tools.ietf.org/html/rfc7231#section-6.4.1>
|
[3]: <http://tools.ietf.org/html/rfc7231#section-6.4.1>
|
||||||
|
@ -4,6 +4,7 @@ code: 407
|
|||||||
title: Proxy Authentication Required
|
title: Proxy Authentication Required
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":proxy_authentication_required"
|
"Rails HTTP Status Symbol": ":proxy_authentication_required"
|
||||||
|
"Go HTTP Status Constant": "http.StatusProxyAuthRequired"
|
||||||
---
|
---
|
||||||
|
|
||||||
Similar to [401 Unauthorized](/401), but it indicates that the client needs to
|
Similar to [401 Unauthorized](/401), but it indicates that the client needs to
|
||||||
@ -24,4 +25,4 @@ header field<sup>[2](#ref-2)</sup>.
|
|||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7235#section-3.2>
|
[1]: <http://tools.ietf.org/html/rfc7235#section-3.2>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7235#section-4.3>
|
[2]: <http://tools.ietf.org/html/rfc7235#section-4.3>
|
||||||
[3]: <http://tools.ietf.org/html/rfc7235#section-4.4>
|
[3]: <http://tools.ietf.org/html/rfc7235#section-4.4>
|
||||||
|
@ -4,6 +4,7 @@ code: 408
|
|||||||
title: Request Timeout
|
title: Request Timeout
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":request_timeout"
|
"Rails HTTP Status Symbol": ":request_timeout"
|
||||||
|
"Go HTTP Status Constant": "http.StatusRequestTimeout"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server did not receive a complete request message within the time that it
|
The server did not receive a complete request message within the time that it
|
||||||
@ -20,4 +21,4 @@ request in transit, the client MAY repeat that request on a new connection.
|
|||||||
* Source: [RFC7231 Section 6.5.7][1]
|
* Source: [RFC7231 Section 6.5.7][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.7>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.7>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7230#section-6.1>
|
[2]: <http://tools.ietf.org/html/rfc7230#section-6.1>
|
||||||
|
@ -4,6 +4,7 @@ code: 409
|
|||||||
title: Conflict
|
title: Conflict
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":conflict"
|
"Rails HTTP Status Symbol": ":conflict"
|
||||||
|
"Go HTTP Status Constant": "http.StatusConflict"
|
||||||
---
|
---
|
||||||
|
|
||||||
The request could not be completed due to a conflict with the current state of
|
The request could not be completed due to a conflict with the current state of
|
||||||
@ -24,4 +25,4 @@ information useful for merging the differences based on the revision history.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.5.8][1]
|
* Source: [RFC7231 Section 6.5.8][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.8>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.8>
|
||||||
|
@ -4,6 +4,7 @@ code: 410
|
|||||||
title: Gone
|
title: Gone
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":gone"
|
"Rails HTTP Status Symbol": ":gone"
|
||||||
|
"Go HTTP Status Constant": "http.StatusGone"
|
||||||
---
|
---
|
||||||
|
|
||||||
The target resource is no longer available at the origin server and that this
|
The target resource is no longer available at the origin server and that this
|
||||||
@ -32,4 +33,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 Section 6.5.9][1]
|
* Source: [RFC7231 Section 6.5.9][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.9>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.9>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 411
|
|||||||
title: Length Required
|
title: Length Required
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":length_required"
|
"Rails HTTP Status Symbol": ":length_required"
|
||||||
|
"Go HTTP Status Constant": "http.StatusLengthRequired"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server refuses to accept the request without a defined
|
The server refuses to accept the request without a defined
|
||||||
@ -18,4 +19,4 @@ containing the length of the message body in the request message.
|
|||||||
* Source: [RFC7231 Section 6.5.10][1]
|
* Source: [RFC7231 Section 6.5.10][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.10>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.10>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7230#section-3.3.2>
|
[2]: <http://tools.ietf.org/html/rfc7230#section-3.3.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 412
|
|||||||
title: Precondition Failed
|
title: Precondition Failed
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":precondition_failed"
|
"Rails HTTP Status Symbol": ":precondition_failed"
|
||||||
|
"Go HTTP Status Constant": "http.StatusPreconditionFailed"
|
||||||
---
|
---
|
||||||
|
|
||||||
One or more conditions given in the request header fields evaluated to false
|
One or more conditions given in the request header fields evaluated to false
|
||||||
@ -18,4 +19,4 @@ state.
|
|||||||
|
|
||||||
* Source: [RFC7232 Section 4.2][1]
|
* Source: [RFC7232 Section 4.2][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7232#section-4.2>
|
[1]: <http://tools.ietf.org/html/rfc7232#section-4.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 413
|
|||||||
title: Payload Too Large
|
title: Payload Too Large
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":request_entity_too_large"
|
"Rails HTTP Status Symbol": ":request_entity_too_large"
|
||||||
|
"Go HTTP Status Constant": "http.StatusRequestEntityTooLarge"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server is refusing to process a request because the request payload is
|
The server is refusing to process a request because the request payload is
|
||||||
@ -20,4 +21,4 @@ again.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.5.11][1]
|
* Source: [RFC7231 Section 6.5.11][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.11>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.11>
|
||||||
|
@ -4,6 +4,7 @@ code: 414
|
|||||||
title: Request-URI Too Long
|
title: Request-URI Too Long
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":request_uri_too_long"
|
"Rails HTTP Status Symbol": ":request_uri_too_long"
|
||||||
|
"Go HTTP Status Constant": "http.StatusRequestURITooLong"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server is refusing to service the request because the
|
The server is refusing to service the request because the
|
||||||
@ -29,4 +30,4 @@ RFC7234 Section 4.2.2][3]</span>
|
|||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.12>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.12>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-5.3>
|
[2]: <http://tools.ietf.org/html/rfc7231#section-5.3>
|
||||||
[3]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[3]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 415
|
|||||||
title: Unsupported Media Type
|
title: Unsupported Media Type
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":unsupported_media_type"
|
"Rails HTTP Status Symbol": ":unsupported_media_type"
|
||||||
|
"Go HTTP Status Constant": "http.StatusUnsupportedMediaType"
|
||||||
---
|
---
|
||||||
|
|
||||||
The origin server is refusing to service the request because the payload is in a
|
The origin server is refusing to service the request because the payload is in a
|
||||||
@ -16,4 +17,4 @@ Content-Encoding, or as a result of inspecting the data directly.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.5.13][1]
|
* Source: [RFC7231 Section 6.5.13][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.13>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.13>
|
||||||
|
@ -4,6 +4,7 @@ code: 416
|
|||||||
title: Requested Range Not Satisfiable
|
title: Requested Range Not Satisfiable
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":requested_range_not_satisfiable"
|
"Rails HTTP Status Symbol": ":requested_range_not_satisfiable"
|
||||||
|
"Go HTTP Status Constant": "http.StatusRequestedRangeNotSatisfiable"
|
||||||
---
|
---
|
||||||
|
|
||||||
None of the ranges in the request's Range header field<sup>[1](#ref-1)</sup>
|
None of the ranges in the request's Range header field<sup>[1](#ref-1)</sup>
|
||||||
@ -42,4 +43,4 @@ representation. Thus, clients cannot depend on receiving a
|
|||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7233#section-4.4>
|
[1]: <http://tools.ietf.org/html/rfc7233#section-4.4>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7233#section-3.1>
|
[2]: <http://tools.ietf.org/html/rfc7233#section-3.1>
|
||||||
[3]: <http://tools.ietf.org/html/rfc7233#section-4.2>
|
[3]: <http://tools.ietf.org/html/rfc7233#section-4.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 417
|
|||||||
title: Expectation Failed
|
title: Expectation Failed
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":expectation_failed"
|
"Rails HTTP Status Symbol": ":expectation_failed"
|
||||||
|
"Go HTTP Status Constant": "http.StatusExpectationFailed"
|
||||||
---
|
---
|
||||||
|
|
||||||
The expectation given in the request's Expect header field<sup>[1](#ref-1)</sup>
|
The expectation given in the request's Expect header field<sup>[1](#ref-1)</sup>
|
||||||
@ -15,4 +16,4 @@ could not be met by at least one of the inbound servers.
|
|||||||
* Source: [RFC7231 Section 6.5.14][1]
|
* Source: [RFC7231 Section 6.5.14][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.14>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.14>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-5.1.1>
|
[2]: <http://tools.ietf.org/html/rfc7231#section-5.1.1>
|
||||||
|
@ -4,6 +4,7 @@ code: 418
|
|||||||
title: I'm a teapot
|
title: I'm a teapot
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":i'm_a_teapot"
|
"Rails HTTP Status Symbol": ":i'm_a_teapot"
|
||||||
|
"Go HTTP Status Constant": "http.StatusTeapot"
|
||||||
---
|
---
|
||||||
|
|
||||||
Any attempt to brew coffee with a teapot should result in the error code
|
Any attempt to brew coffee with a teapot should result in the error code
|
||||||
@ -13,4 +14,4 @@ Any attempt to brew coffee with a teapot should result in the error code
|
|||||||
|
|
||||||
* Source: [RFC2324 Section 2.3.2][1]
|
* Source: [RFC2324 Section 2.3.2][1]
|
||||||
|
|
||||||
[1]: <https://tools.ietf.org/html/rfc2324#section-2.3.2>
|
[1]: <https://tools.ietf.org/html/rfc2324#section-2.3.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 500
|
|||||||
title: Internal Server Error
|
title: Internal Server Error
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":internal_server_error"
|
"Rails HTTP Status Symbol": ":internal_server_error"
|
||||||
|
"Go HTTP Status Constant": "http.StatusInternalServerError"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server encountered an unexpected condition that prevented it from fulfilling
|
The server encountered an unexpected condition that prevented it from fulfilling
|
||||||
@ -13,4 +14,4 @@ the request.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.6.1][1]
|
* Source: [RFC7231 Section 6.6.1][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.1>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.1>
|
||||||
|
@ -4,6 +4,7 @@ code: 501
|
|||||||
title: Not Implemented
|
title: Not Implemented
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":not_implemented"
|
"Rails HTTP Status Symbol": ":not_implemented"
|
||||||
|
"Go HTTP Status Constant": "http.StatusNotImplemented"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server does not support the functionality required to fulfill the request.
|
The server does not support the functionality required to fulfill the request.
|
||||||
@ -21,4 +22,4 @@ method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
|||||||
* Source: [RFC7231 Section 6.6.2][1]
|
* Source: [RFC7231 Section 6.6.2][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.2>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.2>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|
||||||
|
@ -4,6 +4,7 @@ code: 502
|
|||||||
title: Bad Gateway
|
title: Bad Gateway
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":bad_gateway"
|
"Rails HTTP Status Symbol": ":bad_gateway"
|
||||||
|
"Go HTTP Status Constant": "http.StatusBadGateway"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server, while acting as a gateway or proxy, received an invalid response
|
The server, while acting as a gateway or proxy, received an invalid response
|
||||||
@ -13,4 +14,4 @@ from an inbound server it accessed while attempting to fulfill the request.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.6.3][1]
|
* Source: [RFC7231 Section 6.6.3][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.3>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.3>
|
||||||
|
@ -4,6 +4,7 @@ code: 503
|
|||||||
title: Service Unavailable
|
title: Service Unavailable
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":service_unavailable"
|
"Rails HTTP Status Symbol": ":service_unavailable"
|
||||||
|
"Go HTTP Status Constant": "http.StatusServiceUnavailable"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server is currently unable to handle the request due to a temporary overload
|
The server is currently unable to handle the request due to a temporary overload
|
||||||
@ -23,4 +24,4 @@ connection.
|
|||||||
* Source: [RFC7231 Section 6.6.4][1]
|
* Source: [RFC7231 Section 6.6.4][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.4>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.4>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7231#section-7.1.3>
|
[2]: <http://tools.ietf.org/html/rfc7231#section-7.1.3>
|
||||||
|
@ -4,6 +4,7 @@ code: 504
|
|||||||
title: Gateway Timeout
|
title: Gateway Timeout
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":gateway_timeout"
|
"Rails HTTP Status Symbol": ":gateway_timeout"
|
||||||
|
"Go HTTP Status Constant": "http.StatusGatewayTimeout"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server, while acting as a gateway or proxy, did not receive a timely
|
The server, while acting as a gateway or proxy, did not receive a timely
|
||||||
@ -14,4 +15,4 @@ request.
|
|||||||
|
|
||||||
* Source: [RFC7231 Section 6.6.5][1]
|
* Source: [RFC7231 Section 6.6.5][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.5>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.5>
|
||||||
|
@ -4,6 +4,7 @@ code: 505
|
|||||||
title: HTTP Version Not Supported
|
title: HTTP Version Not Supported
|
||||||
references:
|
references:
|
||||||
"Rails HTTP Status Symbol": ":http_version_not_supported"
|
"Rails HTTP Status Symbol": ":http_version_not_supported"
|
||||||
|
"Go HTTP Status Constant": "http.StatusHTTPVersionNotSupported"
|
||||||
---
|
---
|
||||||
|
|
||||||
The server does not support, or refuses to support, the major version of HTTP
|
The server does not support, or refuses to support, the major version of HTTP
|
||||||
@ -20,4 +21,4 @@ version is not supported and what other protocols are supported by that server.
|
|||||||
* Source: [RFC7231 Section 6.6.6][1]
|
* Source: [RFC7231 Section 6.6.6][1]
|
||||||
|
|
||||||
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.6>
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.6.6>
|
||||||
[2]: <http://tools.ietf.org/html/rfc7230#section-2.6>
|
[2]: <http://tools.ietf.org/html/rfc7230#section-2.6>
|
||||||
|
Loading…
Reference in New Issue
Block a user