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

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

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

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

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

@ -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

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.

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

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

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.

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").

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

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

@ -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

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

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

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

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.