From fee183c7f3054d19f9ac63adaca879c06bbff28a Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:48:31 +0000 Subject: [PATCH] Gives 5xx simple opening paragraphs --- contents/codes/500.md | 2 +- contents/codes/501.md | 9 +++++---- contents/codes/502.md | 2 +- contents/codes/503.md | 10 ++++++---- contents/codes/504.md | 2 +- contents/codes/505.md | 8 +++++--- contents/codes/507.md | 11 ++++++----- contents/codes/508.md | 2 +- contents/codes/510.md | 4 +++- 9 files changed, 29 insertions(+), 21 deletions(-) diff --git a/contents/codes/500.md b/contents/codes/500.md index 2693bbf..bc966da 100644 --- a/contents/codes/500.md +++ b/contents/codes/500.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":internal_server_error" --- -The 500 (Internal Server Error) status code indicates that the server +The 500 Internal Server Error status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. diff --git a/contents/codes/501.md b/contents/codes/501.md index 228520b..48200d7 100644 --- a/contents/codes/501.md +++ b/contents/codes/501.md @@ -6,10 +6,11 @@ references: "Rails HTTP Status Symbol": ":not_implemented" --- -The 501 (Not Implemented) status code indicates that the server does not support -the functionality required to fulfill the request. This is the appropriate -response when the server does not recognize the request method and is not -capable of supporting it for any resource. +The 501 Not Implemented status code indicates that the server does not support +the functionality required to fulfill the request. + +This is the appropriate response when the server does not recognize the request +method and is not capable of supporting it for any resource. A 501 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls diff --git a/contents/codes/502.md b/contents/codes/502.md index 294e50d..dae333b 100644 --- a/contents/codes/502.md +++ b/contents/codes/502.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":bad_gateway" --- -The 502 (Bad Gateway) status code indicates that the server, while acting as a +The 502 Bad Gateway status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request. diff --git a/contents/codes/503.md b/contents/codes/503.md index 12e7702..be93db0 100644 --- a/contents/codes/503.md +++ b/contents/codes/503.md @@ -6,11 +6,13 @@ references: "Rails HTTP Status Symbol": ":service_unavailable" --- -The 503 (Service Unavailable) status code indicates that the server is currently +The 503 Service Unavailable status code indicates that the server is currently unable to handle the request due to a temporary overload or scheduled -maintenance, which will likely be alleviated after some delay. The server MAY -send a Retry-After header field ([RFC7231 Section 7.1.3][2]) to suggest an -appropriate amount of time for the client to wait before retrying the request. +maintenance, which will likely be alleviated after some delay. + +The server MAY send a Retry-After header field ([RFC7231 Section 7.1.3][2]) to +suggest an appropriate amount of time for the client to wait before retrying the +request. Note: The existence of the 503 status code does not imply that a server has to use it when becoming overloaded. Some servers might simply refuse the diff --git a/contents/codes/504.md b/contents/codes/504.md index 3d2e2c6..a331937 100644 --- a/contents/codes/504.md +++ b/contents/codes/504.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":gateway_timeout" --- -The 504 (Gateway Timeout) status code indicates that the server, while acting as +The 504 Gateway Timeout status code indicates that the server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request. diff --git a/contents/codes/505.md b/contents/codes/505.md index fdd610c..29b32bb 100644 --- a/contents/codes/505.md +++ b/contents/codes/505.md @@ -6,10 +6,12 @@ references: "Rails HTTP Status Symbol": ":http_version_not_supported" --- -The 505 (HTTP Version Not Supported) status code indicates that the server does +The 505 HTTP Version Not Supported status code indicates that the server does not support, or refuses to support, the major version of HTTP that was used in -the request message. The server is indicating that it is unable or unwilling to -complete the request using the same major version as the client, as described in +the request message. + +The server is indicating that it is unable or unwilling to complete the request +using the same major version as the client, as described in [Section 2.6 of RFC7230][2], other than with this error message. The server SHOULD generate a representation for the 505 response that describes why that version is not supported and what other protocols are supported by that server. diff --git a/contents/codes/507.md b/contents/codes/507.md index f9dc1b1..0ab59b3 100644 --- a/contents/codes/507.md +++ b/contents/codes/507.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": ":insufficient_storage" --- -The 507 (Insufficient Storage) status code means the method could not be +The 507 Insufficient Storage status code means the method could not be performed on the resource because the server is unable to store the -representation needed to successfully complete the request. This condition is -considered to be temporary. If the request that received this status code was -the result of a user action, the request MUST NOT be repeated until it is -requested by a separate user action. +representation needed to successfully complete the request. + +This condition is considered to be temporary. If the request that received this +status code was the result of a user action, the request MUST NOT be repeated +until it is requested by a separate user action. [1]: \ No newline at end of file diff --git a/contents/codes/508.md b/contents/codes/508.md index dd5907d..79a7316 100644 --- a/contents/codes/508.md +++ b/contents/codes/508.md @@ -4,7 +4,7 @@ code: 508 title: Loop Detected --- -The 508 (Loop Detected) status code indicates that the server terminated an +The 508 Loop Detected status code indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity". This status indicates that the entire operation failed. diff --git a/contents/codes/510.md b/contents/codes/510.md index 640219c..d648642 100644 --- a/contents/codes/510.md +++ b/contents/codes/510.md @@ -8,7 +8,9 @@ references: The policy for accessing the resource has not been met in the request. The server should send back all the information necessary for the client to issue an -extended request. It is outside the scope of this specification to specify how +extended request. + +It is outside the scope of this specification to specify how the extensions inform the client. If the 510 response contains information about extensions that were not present