Add Symfony HTTP Status Constant references (#48)

This commit is contained in:
ismail BASKIN 2016-04-19 16:19:17 +03:00 committed by Samuel Ryan
parent e61147e63b
commit b08be33ec2
61 changed files with 86 additions and 18 deletions

View File

@ -5,6 +5,7 @@ title: Continue
references:
"Rails HTTP Status Symbol": ":continue"
"Go HTTP Status Constant": "http.StatusContinue"
"Symfony HTTP Status Constant": "Response::HTTP_CONTINUE"
---
The initial part of a request has been received and has not yet been rejected by

View File

@ -5,6 +5,7 @@ title: Switching Protocols
references:
"Rails HTTP Status Symbol": ":switching_protocols"
"Go HTTP Status Constant": "http.StatusSwitchingProtocols"
"Symfony HTTP Status Constant": "Response::HTTP_SWITCHING_PROTOCOLS"
---
The server understands and is willing to comply with the client's request, via

View File

@ -4,6 +4,7 @@ code: 102
title: Processing
references:
"Rails HTTP Status Symbol": ":processing"
"Symfony HTTP Status Constant": "Response::HTTP_PROCESSING"
---
An interim response used to inform the client that the server has accepted the
@ -26,4 +27,4 @@ processing the method.
* Source: [RFC2518 Section 10.1][1]
[1]: <http://tools.ietf.org/html/rfc2518#section-10.1>
[1]: <http://tools.ietf.org/html/rfc2518#section-10.1>

View File

@ -5,6 +5,7 @@ title: OK
references:
"Rails HTTP Status Symbol": ":ok"
"Go HTTP Status Constant": "http.StatusOK"
"Symfony HTTP Status Constant": "Response::HTTP_OK"
---
The request has succeeded.

View File

@ -5,6 +5,7 @@ title: Created
references:
"Rails HTTP Status Symbol": ":created"
"Go HTTP Status Constant": "http.StatusCreated"
"Symfony HTTP Status Constant": "Response::HTTP_CREATED"
---
The request has been fulfilled and has resulted in one or more new resources

View File

@ -5,6 +5,7 @@ title: Accepted
references:
"Rails HTTP Status Symbol": ":accepted"
"Go HTTP Status Constant": "http.StatusAccepted"
"Symfony HTTP Status Constant": "Response::HTTP_ACCEPTED"
---
The request has been accepted for processing, but the processing has not been

View File

@ -5,6 +5,7 @@ title: Non-authoritative Information
references:
"Rails HTTP Status Symbol": ":non_authoritative_information"
"Go HTTP Status Constant": "http.StatusNonAuthoritativeInfo"
"Symfony HTTP Status Constant": "Response::HTTP_NON_AUTHORITATIVE_INFORMATION"
---
The request was successful but the enclosed payload has been modified from that

View File

@ -5,6 +5,7 @@ title: No Content
references:
"Rails HTTP Status Symbol": ":no_content"
"Go HTTP Status Constant": "http.StatusNoContent"
"Symfony HTTP Status Constant": "Response::HTTP_NO_CONTENT"
---
The server has successfully fulfilled the request and that there is no

View File

@ -5,6 +5,7 @@ title: Reset Content
references:
"Rails HTTP Status Symbol": ":reset_content"
"Go HTTP Status Constant": "http.StatusResetContent"
"Symfony HTTP Status Constant": "Response::HTTP_RESET_CONTENT"
---
The server has fulfilled the request and desires that the user agent reset the

View File

@ -5,6 +5,7 @@ title: Partial Content
references:
"Rails HTTP Status Symbol": ":partial_content"
"Go HTTP Status Constant": "http.StatusPartialContent"
"Symfony HTTP Status Constant": "Response::HTTP_PARTIAL_CONTENT"
---
The server is successfully fulfilling a range request for the target resource by

View File

@ -4,6 +4,7 @@ code: 207
title: Multi-Status
references:
"Rails HTTP Status Symbol": ":multi_status"
"Symfony HTTP Status Constant": "Response::HTTP_MULTI_STATUS"
---
A Multi-Status response conveys information about multiple resources in

View File

@ -2,6 +2,8 @@
set: 2
code: 208
title: Already Reported
references:
"Symfony HTTP Status Constant": "Response::HTTP_ALREADY_REPORTED"
---
Used inside a DAV: propstat response element to avoid enumerating the internal
@ -39,4 +41,4 @@ streaming out a multistatus response.
[1]: <http://tools.ietf.org/html/rfc5842#section-7.1>
[2]: <http://tools.ietf.org/html/rfc5842#section-2.2>
[3]: <http://tools.ietf.org/html/rfc5842#section-8.2>
[3]: <http://tools.ietf.org/html/rfc5842#section-8.2>

View File

@ -4,6 +4,7 @@ code: 226
title: IM Used
references:
"Rails HTTP Status Symbol": ":im_used"
"Symfony HTTP Status Constant": "Response::HTTP_IM_USED"
---
The server has fulfilled a GET request for the resource, and the response is a
@ -36,4 +37,4 @@ cache entry for the current instance.
[1]: <http://tools.ietf.org/html/rfc3229#section-10.4.1>
[2]: <http://tools.ietf.org/html/rfc2616#section-13.5.3>
[3]: <http://tools.ietf.org/html/rfc3229#section-10.6>
[3]: <http://tools.ietf.org/html/rfc3229#section-10.6>

View File

@ -5,6 +5,7 @@ title: Multiple Choices
references:
"Rails HTTP Status Symbol": ":multiple_choices"
"Go HTTP Status Constant": "http.StatusMultipleChoices"
"Symfony HTTP Status Constant": "Response::HTTP_MULTIPLE_CHOICES"
---
The target resource has more than one representation, each with its own more

View File

@ -5,6 +5,7 @@ title: Moved Permanently
references:
"Rails HTTP Status Symbol": ":moved_permanently"
"Go HTTP Status Constant": "http.StatusMovedPermanently"
"Symfony HTTP Status Constant": "Response::HTTP_MOVED_PERMANENTLY"
---
The target resource has been assigned a new permanent URI and any future

View File

@ -5,6 +5,7 @@ title: Found
references:
"Rails HTTP Status Symbol": ":found"
"Go HTTP Status Constant": "http.StatusFound"
"Symfony HTTP Status Constant": "Response::HTTP_FOUND"
---
The target resource resides temporarily under a different URI. Since the

View File

@ -5,6 +5,7 @@ title: See Other
references:
"Rails HTTP Status Symbol": ":see_other"
"Go HTTP Status Constant": "http.StatusSeeOther"
"Symfony HTTP Status Constant": "Response::HTTP_SEE_OTHER"
---
The server is redirecting the user agent to a different resource, as indicated

View File

@ -5,6 +5,7 @@ title: Not Modified
references:
"Rails HTTP Status Symbol": ":not_modified"
"Go HTTP Status Constant": "http.StatusNotModified"
"Symfony HTTP Status Constant": "Response::HTTP_NOT_MODIFIED"
---
A conditional GET or HEAD request has been received and would have resulted in a

View File

@ -5,6 +5,7 @@ title: Use Proxy
#references:
# "Rails HTTP Status Symbol": "use_proxy"
# "Go HTTP Status Constant": "http.StatusUseProxy"
# "Symfony HTTP Status Constant": "Response::HTTP_USE_PROXY"
# - Due to deprecation we won't show this... but should we?
---

View File

@ -5,6 +5,7 @@ title: Temporary Redirect
references:
"Rails HTTP Status Symbol": ":temporary_redirect"
"Go HTTP Status Constant": "http.StatusTemporaryRedirect"
"Symfony HTTP Status Constant": "Response::HTTP_TEMPORARY_REDIRECT"
---
The target resource resides temporarily under a different URI and the user agent

View File

@ -2,6 +2,8 @@
set: 3
code: 308
title: Permanent Redirect
references:
"Symfony HTTP Status Constant": "Response::HTTP_PERMANENTLY_REDIRECT"
---
The target resource has been assigned a new permanent URI and any future
@ -36,4 +38,4 @@ from POST to GET.
[1]: <http://tools.ietf.org/html/rfc7538#section-3>
[2]: <http://tools.ietf.org/html/rfc7230#section-5.5>
[3]: <http://tools.ietf.org/html/rfc7231#section-7.1.2>
[4]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
[4]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>

View File

@ -5,6 +5,7 @@ title: Bad Request
references:
"Rails HTTP Status Symbol": "bad_request"
"Go HTTP Status Constant": "http.StatusBadRequest"
"Symfony HTTP Status Constant": "Response::HTTP_BAD_REQUEST"
---
The server cannot or will not process the request due to something that is

View File

@ -5,6 +5,7 @@ title: Unauthorized
references:
"Rails HTTP Status Symbol": ":unauthorized"
"Go HTTP Status Constant": "http.StatusUnauthorized"
"Symfony HTTP Status Constant": "Response::HTTP_UNAUTHORIZED"
---
The request has not been applied because it lacks valid authentication

View File

@ -5,6 +5,7 @@ title: Payment Required
references:
"Rails HTTP Status Symbol": ":payment_required"
"Go HTTP Status Constant": "http.StatusPaymentRequired"
"Symfony HTTP Status Constant": "Response::HTTP_PAYMENT_REQUIRED"
---
Reserved for future use.

View File

@ -5,6 +5,7 @@ title: Forbidden
references:
"Rails HTTP Status Symbol": ":forbidden"
"Go HTTP Status Constant": "http.StatusForbidden"
"Symfony HTTP Status Constant": "Response::HTTP_FORBIDDEN"
---
The server understood the request but refuses to authorize it.

View File

@ -5,6 +5,7 @@ title: Not Found
references:
"Rails HTTP Status Symbol": ":not_found"
"Go HTTP Status Constant": "http.StatusNotFound"
"Symfony HTTP Status Constant": "Response::HTTP_NOT_FOUND"
---
The origin server did not find a current representation for the target resource

View File

@ -5,6 +5,7 @@ title: Method Not Allowed
references:
"Rails HTTP Status Symbol": ":method_not_allowed"
"Go HTTP Status Constant": "http.StatusMethodNotAllowed"
"Symfony HTTP Status Constant": "Response::HTTP_METHOD_NOT_ALLOWED"
---
The method received in the request-line is known by the origin server but not

View File

@ -5,6 +5,7 @@ title: Not Acceptable
references:
"Rails HTTP Status Symbol": ":not_acceptable"
"Go HTTP Status Constant": "http.StatusNotAcceptable"
"Symfony HTTP Status Constant": "Response::HTTP_NOT_ACCEPTABLE"
---
The target resource does not have a current representation that would be

View File

@ -5,6 +5,7 @@ title: Proxy Authentication Required
references:
"Rails HTTP Status Symbol": ":proxy_authentication_required"
"Go HTTP Status Constant": "http.StatusProxyAuthRequired"
"Symfony HTTP Status Constant": "Response::HTTP_PROXY_AUTHENTICATION_REQUIRED"
---
Similar to [401 Unauthorized](/401), but it indicates that the client needs to

View File

@ -5,6 +5,7 @@ title: Request Timeout
references:
"Rails HTTP Status Symbol": ":request_timeout"
"Go HTTP Status Constant": "http.StatusRequestTimeout"
"Symfony HTTP Status Constant": "Response::HTTP_REQUEST_TIMEOUT"
---
The server did not receive a complete request message within the time that it

View File

@ -5,6 +5,7 @@ title: Conflict
references:
"Rails HTTP Status Symbol": ":conflict"
"Go HTTP Status Constant": "http.StatusConflict"
"Symfony HTTP Status Constant": "Response::HTTP_CONFLICT"
---
The request could not be completed due to a conflict with the current state of

View File

@ -5,6 +5,7 @@ title: Gone
references:
"Rails HTTP Status Symbol": ":gone"
"Go HTTP Status Constant": "http.StatusGone"
"Symfony HTTP Status Constant": "Response::HTTP_GONE"
---
The target resource is no longer available at the origin server and that this

View File

@ -5,6 +5,7 @@ title: Length Required
references:
"Rails HTTP Status Symbol": ":length_required"
"Go HTTP Status Constant": "http.StatusLengthRequired"
"Symfony HTTP Status Constant": "Response::HTTP_LENGTH_REQUIRED"
---
The server refuses to accept the request without a defined

View File

@ -5,6 +5,7 @@ title: Precondition Failed
references:
"Rails HTTP Status Symbol": ":precondition_failed"
"Go HTTP Status Constant": "http.StatusPreconditionFailed"
"Symfony HTTP Status Constant": "Response::HTTP_PRECONDITION_FAILED"
---
One or more conditions given in the request header fields evaluated to false

View File

@ -5,6 +5,7 @@ title: Payload Too Large
references:
"Rails HTTP Status Symbol": ":request_entity_too_large"
"Go HTTP Status Constant": "http.StatusRequestEntityTooLarge"
"Symfony HTTP Status Constant": "Response::HTTP_REQUEST_ENTITY_TOO_LARGE"
---
The server is refusing to process a request because the request payload is

View File

@ -5,6 +5,7 @@ title: Request-URI Too Long
references:
"Rails HTTP Status Symbol": ":request_uri_too_long"
"Go HTTP Status Constant": "http.StatusRequestURITooLong"
"Symfony HTTP Status Constant": "Response::HTTP_REQUEST_URI_TOO_LONG"
---
The server is refusing to service the request because the

View File

@ -5,6 +5,7 @@ title: Unsupported Media Type
references:
"Rails HTTP Status Symbol": ":unsupported_media_type"
"Go HTTP Status Constant": "http.StatusUnsupportedMediaType"
"Symfony HTTP Status Constant": "Response::HTTP_UNSUPPORTED_MEDIA_TYPE"
---
The origin server is refusing to service the request because the payload is in a

View File

@ -5,6 +5,7 @@ title: Requested Range Not Satisfiable
references:
"Rails HTTP Status Symbol": ":requested_range_not_satisfiable"
"Go HTTP Status Constant": "http.StatusRequestedRangeNotSatisfiable"
"Symfony HTTP Status Constant": "Response::HTTP_REQUESTED_RANGE_NOT_SATISFIABLE"
---
None of the ranges in the request's Range header field<sup>[1](#ref-1)</sup>

View File

@ -5,6 +5,7 @@ title: Expectation Failed
references:
"Rails HTTP Status Symbol": ":expectation_failed"
"Go HTTP Status Constant": "http.StatusExpectationFailed"
"Symfony HTTP Status Constant": "Response::HTTP_EXPECTATION_FAILED"
---
The expectation given in the request's Expect header field<sup>[1](#ref-1)</sup>

View File

@ -4,6 +4,7 @@ code: 418
title: I'm a teapot
references:
"Go HTTP Status Constant": "http.StatusTeapot"
"Symfony HTTP Status Constant": "Response::HTTP_I_AM_A_TEAPOT"
---
Any attempt to brew coffee with a teapot should result in the error code

View File

@ -32,4 +32,4 @@ method definition or explicit cache controls<sup>[2](#ref-2)</sup>.
[1]: <http://tools.ietf.org/html/rfc7540#section-9.1.2>
[2]: <http://tools.ietf.org/html/rfc7540#section-9.1.1>
[3]: <http://tools.ietf.org/html/rfc7540#ref-ALT-SVC>
[4]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
[4]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>

View File

@ -4,6 +4,7 @@ code: 422
title: Unprocessable Entity
references:
"Rails HTTP Status Symbol": ":unprocessable_entity"
"Symfony HTTP Status Constant": "Response::HTTP_UNPROCESSABLE_ENTITY"
---
The server understands the content type of the request entity (hence a
@ -19,4 +20,4 @@ instructions.
* Source: [RFC4918 Section 11.2][1]
[1]: <http://tools.ietf.org/html/rfc4918#section-11.2>
[1]: <http://tools.ietf.org/html/rfc4918#section-11.2>

View File

@ -4,6 +4,7 @@ code: 423
title: Locked
references:
"Rails HTTP Status Symbol": ":locked"
"Symfony HTTP Status Constant": "Response::HTTP_LOCKED"
---
The source or destination resource of a method is locked.
@ -15,4 +16,4 @@ postcondition code, such as 'lock-token-submitted' or 'no-conflicting-lock'.
* Source: [RFC4918 Section 11.3][1]
[1]: <http://tools.ietf.org/html/rfc4918#section-11.3>
[1]: <http://tools.ietf.org/html/rfc4918#section-11.3>

View File

@ -4,6 +4,7 @@ code: 424
title: Failed Dependency
references:
"Rails HTTP Status Symbol": "failed_dependency"
"Symfony HTTP Status Constant": "Response::HTTP_FAILED_DEPENDENCY"
---
The method could not be performed on the resource because the requested action
@ -16,4 +17,4 @@ rest of the commands will also fail with 424 Failed Dependency.
* Source: [RFC4918 Section 11.4][1]
[1]: <http://tools.ietf.org/html/rfc4918#section-11.4>
[1]: <http://tools.ietf.org/html/rfc4918#section-11.4>

View File

@ -4,6 +4,7 @@ code: 426
title: Upgrade Required
references:
"Rails HTTP Status Symbol": ":upgrade_required"
"Symfony HTTP Status Constant": "Response::HTTP_UPGRADE_REQUIRED"
---
The server refuses to perform the request using the current protocol but might
@ -30,4 +31,4 @@ This service requires use of the HTTP/3.0 protocol.
* Source: [RFC7231 Section 6.5.15][1]
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.15>
[2]: <http://tools.ietf.org/html/rfc7230#section-6.7>
[2]: <http://tools.ietf.org/html/rfc7230#section-6.7>

View File

@ -2,6 +2,8 @@
set: 4
code: 428
title: Precondition Required
references:
"Symfony HTTP Status Constant": "Response::HTTP_PRECONDITION_REQUIRED"
---
The origin server requires the request to be conditional.
@ -36,4 +38,4 @@ Responses with the 428 status code MUST NOT be stored by a cache.
* Source: [RFC6585 Section 3][1]
[1]: <http://tools.ietf.org/html/rfc6585#section-3>
[1]: <http://tools.ietf.org/html/rfc6585#section-3>

View File

@ -2,6 +2,8 @@
set: 4
code: 429
title: Too Many Requests
references:
"Symfony HTTP Status Constant": "Response::HTTP_TOO_MANY_REQUESTS"
---
The user has sent too many requests in a given amount of time ("rate limiting").
@ -41,4 +43,4 @@ Responses with the 429 status code MUST NOT be stored by a cache.
* Source: [RFC6585 Section 4][1]
[1]: <http://tools.ietf.org/html/rfc6585#section-4>
[1]: <http://tools.ietf.org/html/rfc6585#section-4>

View File

@ -2,6 +2,8 @@
set: 4
code: 431
title: Request Header Fields Too Large
references:
"Symfony HTTP Status Constant": "Response::HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE"
---
The server is unwilling to process the request because its header fields are too
@ -35,4 +37,4 @@ Responses with the 431 status code MUST NOT be stored by a cache.
* Source: [RFC6585 Section 5][1]
[1]: <http://tools.ietf.org/html/rfc6585#section-5>
[1]: <http://tools.ietf.org/html/rfc6585#section-5>

View File

@ -3,6 +3,8 @@ set: 4
code: 451
title: Unavailable For Legal Reasons
proposal: true
references:
"Symfony HTTP Status Constant": "Response::HTTP_UNAVAILABLE_FOR_LEGAL_REASONS"
---
The server is denying access to the resource as a consequence of a legal demand.

View File

@ -14,4 +14,4 @@ closes the connection while nginx is processing the request.
* Source: [nginx.org][1]
[1]: <http://lxr.nginx.org/source/src/http/ngx_http_request.h#0120>
[2]: <http://nginx.org>
[2]: <http://nginx.org>

View File

@ -5,6 +5,7 @@ title: Internal Server Error
references:
"Rails HTTP Status Symbol": ":internal_server_error"
"Go HTTP Status Constant": "http.StatusInternalServerError"
"Symfony HTTP Status Constant": "Response::HTTP_INTERNAL_SERVER_ERROR"
---
The server encountered an unexpected condition that prevented it from fulfilling

View File

@ -5,6 +5,7 @@ title: Not Implemented
references:
"Rails HTTP Status Symbol": ":not_implemented"
"Go HTTP Status Constant": "http.StatusNotImplemented"
"Symfony HTTP Status Constant": "Response::HTTP_NOT_IMPLEMENTED"
---
The server does not support the functionality required to fulfill the request.

View File

@ -5,6 +5,7 @@ title: Bad Gateway
references:
"Rails HTTP Status Symbol": ":bad_gateway"
"Go HTTP Status Constant": "http.StatusBadGateway"
"Symfony HTTP Status Constant": "Response::HTTP_BAD_GATEWAY"
---
The server, while acting as a gateway or proxy, received an invalid response

View File

@ -5,6 +5,7 @@ title: Service Unavailable
references:
"Rails HTTP Status Symbol": ":service_unavailable"
"Go HTTP Status Constant": "http.StatusServiceUnavailable"
"Symfony HTTP Status Constant": "Response::HTTP_SERVICE_UNAVAILABLE"
---
The server is currently unable to handle the request due to a temporary overload

View File

@ -5,6 +5,7 @@ title: Gateway Timeout
references:
"Rails HTTP Status Symbol": ":gateway_timeout"
"Go HTTP Status Constant": "http.StatusGatewayTimeout"
"Symfony HTTP Status Constant": "Response::HTTP_GATEWAY_TIMEOUT"
---
The server, while acting as a gateway or proxy, did not receive a timely

View File

@ -5,6 +5,7 @@ title: HTTP Version Not Supported
references:
"Rails HTTP Status Symbol": ":http_version_not_supported"
"Go HTTP Status Constant": "http.StatusHTTPVersionNotSupported"
"Symfony HTTP Status Constant": "Response::HTTP_VERSION_NOT_SUPPORTED"
---
The server does not support, or refuses to support, the major version of HTTP

View File

@ -2,6 +2,8 @@
set: 5
code: 506
title: Variant Also Negotiates
references:
"Symfony HTTP Status Constant": "Response::HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL"
---
The server has an internal configuration error: the chosen variant resource is
@ -12,4 +14,4 @@ not a proper end point in the negotiation process.
* Source: [RFC2295 Section 8.1][1]
[1]: <http://tools.ietf.org/html/rfc2295#section-8.1>
[1]: <http://tools.ietf.org/html/rfc2295#section-8.1>

View File

@ -4,6 +4,7 @@ code: 507
title: Insufficient Storage
references:
"Rails HTTP Status Symbol": ":insufficient_storage"
"Symfony HTTP Status Constant": "Response::HTTP_INSUFFICIENT_STORAGE"
---
The method could not be performed on the resource because the server is unable
@ -17,4 +18,4 @@ until it is requested by a separate user action.
* Source: [RFC4918 Section 11.5][1]
[1]: <http://tools.ietf.org/html/rfc4918#section-11.5>
[1]: <http://tools.ietf.org/html/rfc4918#section-11.5>

View File

@ -2,6 +2,8 @@
set: 5
code: 508
title: Loop Detected
references:
"Symfony HTTP Status Constant": "Response::HTTP_LOOP_DETECTED"
---
The server terminated an operation because it encountered an infinite loop while
@ -12,4 +14,4 @@ entire operation failed.
* Source: [RFC5842 Section 7.2][1]
[1]: <http://tools.ietf.org/html/rfc5842#section-7.2>
[1]: <http://tools.ietf.org/html/rfc5842#section-7.2>

View File

@ -4,6 +4,7 @@ code: 510
title: Not Extended
references:
"Rails HTTP Status Symbol": ":not_extended"
"Symfony HTTP Status Constant": "Response::HTTP_NOT_EXTENDED"
---
The policy for accessing the resource has not been met in the request. The
@ -24,4 +25,4 @@ entity may include relevant diagnostic information.
* Source: [RFC2774 Section 7][1]
[1]: <http://tools.ietf.org/html/rfc2774#section-7>
[1]: <http://tools.ietf.org/html/rfc2774#section-7>

View File

@ -2,6 +2,8 @@
set: 5
code: 511
title: Network Authentication Required
references:
"Symfony HTTP Status Constant": "Response::HTTP_NETWORK_AUTHENTICATION_REQUIRED"
---
The client needs to authenticate to gain network access.
@ -69,4 +71,4 @@ redirects the user agent to the login server.
* Source: [RFC6585 Section 6][1]
[1]: <http://tools.ietf.org/html/rfc6585#section-6>
[1]: <http://tools.ietf.org/html/rfc6585#section-6>