From 9a4b07620cb3423c025f2b4da419cc98529b45a4 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sun, 1 Nov 2015 18:09:40 +0000 Subject: [PATCH 01/40] Removes old project files --- .gitignore | 5 + LICENSE | 31 +- README.markdown | 67 ---- README.md | 3 + assets/css/style.css | 176 --------- assets/img/favicon.ico | Bin 411 -> 0 bytes assets/img/favicon.png | Bin 312 -> 0 bytes codes/1.json | 89 ----- codes/2.json | 200 ----------- codes/3.json | 187 ---------- codes/4.json | 570 ------------------------------ codes/5.json | 234 ------------ composer.json | 6 - humans.txt | 13 - index.php | 28 -- lib/Httpstatuses/Httpstatuses.php | 32 -- robots.txt | 2 - views/404.php | 46 --- views/index.php | 75 ---- views/status_code.php | 62 ---- 20 files changed, 25 insertions(+), 1801 deletions(-) create mode 100644 .gitignore delete mode 100644 README.markdown create mode 100644 README.md delete mode 100644 assets/css/style.css delete mode 100644 assets/img/favicon.ico delete mode 100644 assets/img/favicon.png delete mode 100644 codes/1.json delete mode 100644 codes/2.json delete mode 100644 codes/3.json delete mode 100644 codes/4.json delete mode 100644 codes/5.json delete mode 100644 composer.json delete mode 100644 humans.txt delete mode 100644 index.php delete mode 100644 lib/Httpstatuses/Httpstatuses.php delete mode 100644 robots.txt delete mode 100644 views/404.php delete mode 100644 views/index.php delete mode 100644 views/status_code.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c94fea --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea +.vagrant +node_modules +bower_components +build \ No newline at end of file diff --git a/LICENSE b/LICENSE index 040932d..a9218ff 100644 --- a/LICENSE +++ b/LICENSE @@ -1,18 +1,21 @@ -Copyright (C) 2012 - 2013 Samuel Ryan (citricsquid) +The MIT License (MIT) -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the -Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +Copyright (c) 2015 Samuel Ryan -The above copyright notice and this permission notice shall be included in all +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.markdown b/README.markdown deleted file mode 100644 index 3f2dc78..0000000 --- a/README.markdown +++ /dev/null @@ -1,67 +0,0 @@ -[httpstatus.es](http://httpstatus.es) is an easy to use http status code reference -site. An individual code can be accessed via httpstatus.es/{status_code}. - -Each individual code is stored in a file specific to the class it is a part of. -For example 404 is stored in 4.json, along with all other 4xx codes. - -## json format - -```json -{ - "class":{ - "title":"1xx Informational" - }, - "codes":{ - "100":{ - "title":"Continue", - "summary":"Client should continue with request", - "descriptions":{ - "wiki":{ - "body":"Wikipedia description", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#100" - }, - "ietf":{ - "body":"IETF Description", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "item":{ - "title":"Reference Title", - "value":"Reference Value" - }, - "item2":{ - "title":"Reference Title", - "value":"Reference Value" - } - } - } - } -} -``` - -JSON should be formatted as above using four space tab and \r\n for new lines in -descriptions. There is no validation on the output and the only processing is -turning new lines into line breaks, if you wish to include HTML that's fine -(preferably only links though and code tags). - -# License - -Copyright (C) 2012 - 2013 Samuel Ryan (citricsquid) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the -Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7aa4889 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +httpstatus.es is an easy to reference directory of HTTP Status Codes with straight forward descriptions, +code references and additional detailed descriptions from the IETF HTTP Working Group. Each HTTP Status Code +is available at httpstatus.es/status_code. \ No newline at end of file diff --git a/assets/css/style.css b/assets/css/style.css deleted file mode 100644 index 18819f0..0000000 --- a/assets/css/style.css +++ /dev/null @@ -1,176 +0,0 @@ -* { - padding: 0; - margin: 0; -} - -body { - color: #556270; - font-family: Arial, Helvetica, sans-serif; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - line-height: 20px; - background-color: #FFF; -} - -a { - font-weight: bold; - text-decoration: none; - color: #D6156C; -} - -a:hover { - color: #f56991; -} - -#wrapper { - margin: 0 auto; - padding: 10px; - max-width: 600px; -} - -@media (min-width: 480px) { - #wrapper { - margin: 20px auto; - } -} - -.header { - font-size: 22px; - font-weight: bold; - margin-bottom: 10px; -} - -.header .status_title { - color: #BBB; - text-transform: uppercase; - line-height: 24px; -} - -.share_buttons { - width: auto; - float: right; -} - -.share_buttons .share_button { - float: left; - display: block; -} - -#advert{ - background-color: #FFEAF2; - height: 20px; - padding: 15px 0; - width: 100%; -} - -.ad{ - margin: auto; - width: 600px; -} - -#return { - font-size: 14px; -} - -#intro { - font-family: Georgia; - font-size: 14px; - line-height: 24px; -} - -#intro p { - margin-bottom: 10px; -} - -#desc { - font-family: Georgia; - font-size: 14px; - line-height: 24px; -} - -#desc p { - margin-bottom: 10px; -} - -#desc .reference { - font-size: 13px; -} - -#statuses { - margin-top: 20px; -} - -.status_list { - margin-bottom: 20px; -} - -.status_list .head { - border-bottom: 2px solid #EEE; - margin-bottom: 10px; - padding-bottom: 2px; -} - -.status_list .head .title { - font-weight: bold; - font-size: 14px; - float: left; - text-transform: lowercase; -} - -.status_list .head .description { - font-style: italic; - float: right; -} - -.status { - height: 70px; - float: left; - overflow: hidden; - width: 100%; -} - -@media (min-width: 480px) { - .status { - margin: 0 2% 0 0; - width: 30%; - } -} - -.status_list .status .st { - font-size: 14px; - font-weight: bold; -} - -.status_list .status .description { - font-size: 11px; - height: 46px; - overflow: hidden; -} - -#code_references { - margin: 20px 0; -} - -.info_list { - font-size: 14px; -} - -.info_list .info_item .title { - width: 200px; - float: left; -} - -.info_list .info_item .value { - float: left; -} - -#footer { - margin-top: 10px; - font-size: 11px; -} - -.clear { - clear: both; -} \ No newline at end of file diff --git a/assets/img/favicon.ico b/assets/img/favicon.ico deleted file mode 100644 index 941858c83e01007c1bf24190eed3d0463b0737a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_Cwy$!fk$L90|Vb-5N14{zaj-BSXSVe4x|;pxc%3hxj@D`PZ!6Kh{JEE z9pr6L;Bh@_!E9|HbJ;@1dV`DYM3b#yM<%&lp2za=``73WMh3Cd5x$$P8<;H`m=hX= zjHk@lz0Nf+_WixLx;Oc(mrE$@fWG`%+@os7IHAWxLmxZY@ zPbbAihbOg}ZTC89%JjPM)-&H9^$oixZ?>Im&Hdfv@zsrTMGe_1D+^y*Tk&oF*Y&>d z*#_oYiF^icg=>y6vKKHEH!yE$%nqEqGW7z`<;qnd5hcO-X(i=}MX3x76}PxO&YaP{ m__>%jP{a6|@l|6J1_pyyENB04SGxk0GkCiCxvX!lvI6;>1s;*b3=DjSL74G){)!Z!pj3%#L`iUdT1k0gQ7S_~VrE{6o}X)oLYc9i zsh**M!Iz?iKvl~&|o4T-RlbM8)rR|Gdl~mcdrX-w-Dl*7o21{#viS;m3D! zxlF23kUG$HRY0D9!Av);7b?c_FKVUgU9wBX5%euk%9Qz{d#r2Rb*x!h;>0b|~6 z5&iD%%bzx$qb&ZelF{r5}E*g Cv~tS; diff --git a/codes/1.json b/codes/1.json deleted file mode 100644 index 1cad150..0000000 --- a/codes/1.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "class":{ - "title":"Informational", - "class":"1" - }, - "codes":{ - "100":{ - "code":"100", - "title":"Continue", - "summary":"Client should continue with request", - "descriptions":{ - "wikipedia":{ - "body":"This means that the server has received the request headers, and that the client should proceed to send the request body (in the case of a request for which a body needs to be sent; for example, a POST request). If the request body is large, sending it to a server when a request has already been rejected based upon inappropriate headers is inefficient. To have a server check if the request could be accepted based on the request's headers alone, a client must send Expect: 100-continue as a header in its initial request and check if a 100 Continue status code is received in response before continuing (or receive 417 Expectation Failed and not continue).", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#100" - }, - "ietf":{ - "body":"The client SHOULD continue with its request. This interim response is used to inform the client that the initial part of the request has been received and has not yet been rejected by the server. The client SHOULD continue by sending the remainder of the request or, if the request has already been completed, ignore this response. The server MUST send a final response after the request has been completed.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":continue" - } - } - }, - "101":{ - "code":"101", - "title":"Switching Protocols", - "summary":"Server is switching protocols", - "descriptions":{ - "wikipedia":{ - "body":"This means the requester has asked the server to switch protocols and the server is acknowledging that it will do so.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#101" - }, - "ietf":{ - "body":"The server understands and is willing to comply with the client's request, via the Upgrade message header field, for a change in the application protocol being used on this connection. The server will switch protocols to those defined by the response's Upgrade header field immediately after the empty line which terminates the 101 response. \r\nThe protocol SHOULD be switched only when it is advantageous to do so. For example, switching to a newer version of HTTP is advantageous over older versions, and switching to a real-time, synchronous protocol might be advantageous when delivering resources that use such features.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":switching_protocols" - } - } - }, - "102":{ - "code":"102", - "title":"Processing (WebDAV) (RFC 2518)", - "summary":"Server has received and is processing the request", - "descriptions":{ - "wikipedia":{ - "body":"As a WebDAV request may contain many sub-requests involving file operations, it may take a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#102" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":processing" - } - } - }, - "103":{ - "code":"103", - "title":"Checkpoint", - "summary":"resume aborted PUT or POST requests", - "descriptions":{ - "wikipedia":{ - "body":"This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#103" - } - } - }, - "122":{ - "code":"122", - "title":"Request-URI too long", - "summary":"URI is longer than a maximum of 2083 characters", - "descriptions":{ - "wikipedia":{ - "body":"This is a non-standard IE7-only code which means the URI is longer than a maximum of 2083 characters.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#122" - } - } - } - } -} \ No newline at end of file diff --git a/codes/2.json b/codes/2.json deleted file mode 100644 index 59ba4a1..0000000 --- a/codes/2.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "class":{ - "title":"Success", - "class":"2" - }, - "codes":{ - "200":{ - "code":"200", - "title":"OK", - "summary":"standard response for successful HTTP requests", - "descriptions":{ - "wikipedia":{ - "body":"Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request the response will contain an entity describing or containing the result of the action.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#200" - }, - "ietf":{ - "body":"The request has succeeded. The information returned with the response is dependent on the method used in the request, for example: GET an entity corresponding to the requested resource is sent in the response; HEAD the entity-header fields corresponding to the requested resource are sent in the response without any message-body; POST an entity describing or containing the result of the action;", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":ok" - } - } - }, - "201":{ - "code":"201", - "title":"Created", - "summary":"request has been fulfilled; new resource created", - "descriptions":{ - "wikipedia":{ - "body":"The request has been fulfilled and resulted in a new resource being created.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#201" - }, - "ietf":{ - "body":"The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response, with the most specific URI for the resource given by a Location header field. The response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content-Type header field. The origin server MUST create the resource before returning the 201 status code. If the action cannot be carried out immediately, the server SHOULD respond with 202 (Accepted) response instead.\r\n A 201 response MAY contain an ETag response header field indicating the current value of the entity tag for the requested variant just created.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":created" - } - } - }, - "202":{ - "code":"202", - "title":"Accepted", - "summary":"request accepted, processing pending", - "descriptions":{ - "wikipedia":{ - "body":"The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.[2]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#202" - }, - "ietf":{ - "body":"The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place. There is no facility for re-sending a status code from an asynchronous operation such as this. \r\nThe 202 response is intentionally non-committal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent's connection to the server persist until the process is completed. The entity returned with this response SHOULD include an indication of the request's current status and either a pointer to a status monitor or some estimate of when the user can expect the request to be fulfilled.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":accepted" - } - } - }, - "203":{ - "code":"203", - "title":"Non-Authoritative Information (since HTTP\/1.1)", - "summary":"request processed, information may be from another source", - "descriptions":{ - "wikipedia":{ - "body":"The server successfully processed the request, but is returning information that may be from another source.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#203" - }, - "ietf":{ - "body":"The returned metainformation in the entity-header is not the definitive set as available from the origin server, but is gathered from a local or a third-party copy. The set presented MAY be a subset or superset of the original version. For example, including local annotation information about the resource might result in a superset of the metainformation known by the origin server. Use of this response code is not required and is only appropriate when the response would otherwise be 200 (OK).", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":non_authoritative_information" - } - } - }, - "204":{ - "code":"204", - "title":"No Content", - "summary":"request processed, no content returned", - "descriptions":{ - "wikipedia":{ - "body":"The server successfully processed the request, but is not returning any content.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#204" - }, - "ietf":{ - "body":"The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation. The response MAY include new or updated metainformation in the form of entity-headers, which if present SHOULD be associated with the requested variant.\r\nIf the client is a user agent, it SHOULD NOT change its document view from that which caused the request to be sent. This response is primarily intended to allow input for actions to take place without causing a change to the user agent's active document view, although any new or updated metainformation SHOULD be applied to the document currently in the user agent's active view.\r\nThe 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":no_content" - } - } - }, - "205":{ - "code":"205", - "title":"Reset Content", - "summary":"request processed, no content returned, reset document view", - "descriptions":{ - "wikipedia":{ - "body":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#205" - }, - "ietf":{ - "body":"The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent. This response is primarily intended to allow input for actions to take place via user input, followed by a clearing of the form in which the input is given so that the user can easily initiate another input action. The response MUST NOT include an entity.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":reset_content" - } - } - }, - "206":{ - "code":"206", - "title":"Partial Content", - "summary":"partial resource return due to request header", - "descriptions":{ - "wikipedia":{ - "body":"The server is delivering only part of the resource due to a range header sent by the client. The range header is used by tools like wget to enable resuming of interrupted downloads, or split a download into multiple simultaneous streams.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#206" - }, - "ietf":{ - "body":"The server has fulfilled the partial GET request for the resource. The request MUST have included a Range header field indicating the desired range, and MAY have included an If-Range header field to make the request conditional.\r\nThe response MUST include the following header fields:\r\nEither a Content-Range header field (section 14.16) indicating the range included with this response, or a multipart\/byteranges Content-Type including Content-Range fields for each part. If a Content-Length header field is present in the response, its value MUST match the actual number of OCTETs transmitted in the message-body.\r\nDate\r\nETag and\/or Content-Location, if the header would have been sent in a 200 response to the same request\r\nExpires, Cache-Control, and\/or Vary, if the field-value might differ from that sent in any previous response for the same variant\r\nIf the 206 response is the result of an If-Range request that used a strong cache validator, the response SHOULD NOT include other entity-headers. If the response is the result of an If-Range request that used a weak validator, the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers. Otherwise, the response MUST include all of the entity-headers that would have been returned with a 200 (OK) response to the same request.\r\nA cache MUST NOT combine a 206 response with other previously cached content if the ETag or Last-Modified headers do not match exactly.\r\nA cache that does not support the Range and Content-Range headers MUST NOT cache 206 (Partial) responses.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":partial_content" - } - } - }, - "207":{ - "code":"207", - "title":"Multi-Status (WebDAV) (RFC 4918)", - "summary":"XML, can contain multiple separate responses", - "descriptions":{ - "wikipedia":{ - "body":"The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#207" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":multi_status" - } - } - }, - "208":{ - "code":"208", - "title":"Already Reported (WebDAV) (RFC 5842)", - "summary":"results previously returned ", - "descriptions":{ - "wikipedia":{ - "body":"The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#208" - } - } - }, - "226":{ - "code":"226", - "title":"IM Used (RFC 3229)", - "summary":"request fulfilled, reponse is instance-manipulations", - "descriptions":{ - "wikipedia":{ - "body":"The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#226" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":im_used" - } - } - } - } -} diff --git a/codes/3.json b/codes/3.json deleted file mode 100644 index e30df30..0000000 --- a/codes/3.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "class":{ - "title":"Redirection", - "class":"3" - }, - "codes":{ - "300":{ - "code":"300", - "title":"Multiple Choices", - "summary":"multiple options for the resource delivered", - "descriptions":{ - "wikipedia":{ - "body":"Indicates multiple options for the resource that the client may follow. It, for instance, could be used to present different format options for video, list files with different extensions, or word sense disambiguation.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#300" - }, - "ietf":{ - "body":"The requested resource corresponds to any one of a set of representations, each with its own specific location, and agent- driven negotiation information is being provided so that the user (or user agent) can select a preferred representation and redirect its request to that location.\r\nUnless it was a HEAD request, the response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content- Type header field. Depending upon the format and the capabilities of the user agent, selection of the most appropriate choice MAY be performed automatically. However, this specification does not define any standard for such automatic selection.\r\nIf the server has a preferred choice of representation, it SHOULD include the specific URI for that representation in the Location field; user agents MAY use the Location field value for automatic redirection. This response is cacheable unless indicated otherwise.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":multiple_choices" - } - } - }, - "301":{ - "code":"301", - "title":"Moved Permanently", - "summary":"this and all future requests directed to the given URI", - "descriptions":{ - "wikipedia":{ - "body":"This and all future requests should be directed to the given URI.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#301" - }, - "ietf":{ - "body":"The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.\r\nThe new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).\r\nIf the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.\r\nNote: When automatically redirecting a POST request after receiving a 301 status code, some existing HTTP\/1.0 user agents will erroneously change it into a GET request.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":moved_permanently" - } - } - }, - "302":{ - "code":"302", - "title":"Found", - "summary":"temporary response to request found via alternative URI", - "descriptions":{ - "wikipedia":{ - "body":"This is an example of industrial practice contradicting the standard. HTTP\/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was \"Moved Temporarily\"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP\/1.1 added status codes 303 and 307 to distinguish between the two behaviours. However, some Web applications and frameworks use the 302 status code as if it were the 303.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#302" - }, - "ietf":{ - "body":"The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.\r\nThe temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).\r\nIf the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.\r\nNote: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request. However, most existing user agent implementations treat 302 as if it were a 303 response, performing a GET on the Location field-value regardless of the original request method. The status codes 303 and 307 have been added for servers that wish to make unambiguously clear which kind of reaction is expected of the client.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":found" - } - } - }, - "303":{ - "code":"303", - "title":"See Other", - "summary":"permanent response to request found via alternative URI", - "descriptions":{ - "wikipedia":{ - "body":"The response to the request can be found under another URI using a GET method. When received in response to a POST (or PUT\/DELETE), it should be assumed that the server has received the data and the redirect should be issued with a separate GET message.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#303" - }, - "ietf":{ - "body":"The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response MUST NOT be cached, but the response to the second (redirected) request might be cacheable.\r\nThe different URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).\r\nNote: Many pre-HTTP\/1.1 user agents do not understand the 303 status. When interoperability with such clients is a concern, the 302 status code may be used instead, since most user agents react to a 302 response as described here for 303.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":see_other" - } - } - }, - "304":{ - "code":"304", - "title":"Not Modified", - "summary":"resource has not been modified since last requested", - "descriptions":{ - "wikipedia":{ - "body":"Indicates the resource has not been modified since last requested. Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time against which to compare. Using this saves bandwidth and reprocessing on both the server and client, as only the header data must be sent and received in comparison to the entirety of the page being re-processed by the server, then sent again using more bandwidth of the server and client.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#304" - }, - "ietf":{ - "body":"If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.\r\nThe response MUST include the following header fields:\r\nDate, unless its omission is required\r\nIf a clockless origin server obeys these rules, and proxies and clients add their own Date to any response received without one (as already specified by RFC 2068), caches will operate correctly.\r\nETag and\/or Content-Location, if the header would have been sent in a 200 response to the same request\r\nExpires, Cache-Control, and\/or Vary, if the field-value might differ from that sent in any previous response for the same variant\r\nIf the conditional GET used a strong cache validator, the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.\r\nIf a 304 response indicates an entity not currently cached, then the cache MUST disregard the response and repeat the request without the conditional.\r\nIf a cache uses a received 304 response to update a cache entry, the cache MUST update the entry to reflect any new field values given in the response.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":not_modified" - } - } - }, - "305":{ - "code":"305", - "title":"Use Proxy (since HTTP\/1.1)", - "summary":"content located elsewhere, retrieve from there", - "descriptions":{ - "wikipedia":{ - "body":"Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#305" - }, - "ietf":{ - "body":"The requested resource MUST be accessed through the proxy given by the Location field. The Location field gives the URI of the proxy. The recipient is expected to repeat this single request via the proxy. 305 responses MUST only be generated by origin servers.\r\nNote: RFC 2068 was not clear that 305 was intended to redirect a single request, and to be generated by origin servers only. Not observing these limitations has significant security consequences.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":use_proxy" - } - } - }, - "306":{ - "code":"306", - "title":"Switch Proxy", - "summary":"subsequent requests should use the specified proxy", - "descriptions":{ - "wikipedia":{ - "body":"No longer used. Originally meant \"Subsequent requests should use the specified proxy.\"", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#306" - }, - "ietf":{ - "body":"The 306 status code was used in a previous version of the specification, is no longer used, and the code is reserved.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - } - }, - "307":{ - "code":"307", - "title":"Temporary Redirect (since HTTP\/1.1)", - "summary":"connect again to different URI as provided", - "descriptions":{ - "wikipedia":{ - "body":"In this occasion, the request should be repeated with another URI, but future requests can still use the original URI. In contrast to 303, the request method should not be changed when reissuing the original request. For instance, a POST request must be repeated using another POST request.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#307" - }, - "ietf":{ - "body":"The requested resource resides temporarily under a different URI. Since the redirection MAY be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.\r\nThe temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s) , since many pre-HTTP\/1.1 user agents do not understand the 307 status. Therefore, the note SHOULD contain the information necessary for a user to repeat the original request on the new URI.\r\nIf the 307 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":temporary_redirect" - } - } - }, - "308":{ - "code":"308", - "title":"Permanent Redirect", - "summary":"connect again to a different URI using the same method", - "descriptions":{ - "wikipedia":{ - "body":"The request, and all future requests should be repeated using another URI. 307 and 308 (as proposed) parallel the behaviours of 302 and 301, but do not allow the HTTP method to change. So, for example, submitting a form to a permanently redirected resource may continue smoothly.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#308" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":no_content" - } - } - } - } -} diff --git a/codes/4.json b/codes/4.json deleted file mode 100644 index 2ffdd96..0000000 --- a/codes/4.json +++ /dev/null @@ -1,570 +0,0 @@ -{ - "class":{ - "title":"Client Error", - "class":"4" - }, - "codes":{ - "400":{ - "code":"400", - "title":"Bad Request", - "summary":"request cannot be fulfilled due to bad syntax", - "descriptions":{ - "wikipedia":{ - "body":"The request cannot be fulfilled due to bad syntax.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#400" - }, - "ietf":{ - "body":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":bad_request" - } - } - }, - "401":{ - "code":"401", - "title":"Unauthorized", - "summary":"authentication is possible but has failed ", - "descriptions":{ - "wikipedia":{ - "body":"Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource. See Basic access authentication and Digest access authentication.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#401" - }, - "ietf":{ - "body":"The request requires user authentication. The response MUST include a WWW-Authenticate header field containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field. If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity might include relevant diagnostic information. HTTP access authentication is explained in \"HTTP Authentication: Basic and Digest Access Authentication\".", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":unauthorized" - } - } - }, - "402":{ - "code":"402", - "title":"Payment Required", - "summary":"payment required, reserved for future use", - "descriptions":{ - "wikipedia":{ - "body":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, but that has not happened, and this code is not usually used. As an example of its use, however, Apple's MobileMe service generates a 402 error (\"httpStatusCode:402\" in the Mac OS X Console log) if the MobileMe account is delinquent.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#402" - }, - "ietf":{ - "body":"This code is reserved for future use.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":payment_required" - } - } - }, - "403":{ - "code":"403", - "title":"Forbidden", - "summary":"server refuses to respond to request", - "descriptions":{ - "wikipedia":{ - "body":"The request was a legal request, but the server is refusing to respond to it. Unlike a 401 Unauthorized response, authenticating will make no difference.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#403" - }, - "ietf":{ - "body":"The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":forbidden" - } - } - }, - "404":{ - "code":"404", - "title":"Not Found", - "summary":"requested resource could not be found", - "descriptions":{ - "wikipedia":{ - "body":"The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#404" - }, - "ietf":{ - "body":"The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":not_found" - } - } - }, - "405":{ - "code":"405", - "title":"Method Not Allowed", - "summary":"request method not supported by that resource", - "descriptions":{ - "wikipedia":{ - "body":"A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#405" - }, - "ietf":{ - "body":"The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":method_not_allowed" - } - } - }, - "406":{ - "code":"406", - "title":"Not Acceptable", - "summary":"content not acceptable according to the Accept headers", - "descriptions":{ - "wikipedia":{ - "body":"The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#406" - }, - "ietf":{ - "body":"The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.\r\nUnless it was a HEAD request, the response SHOULD include an entity containing a list of available entity characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content-Type header field. Depending upon the format and the capabilities of the user agent, selection of the most appropriate choice MAY be performed automatically. However, this specification does not define any standard for such automatic selection.\r\nNote: HTTP\/1.1 servers are allowed to return responses which are not acceptable according to the accept headers sent in the request. In some cases, this may even be preferable to sending a 406 response. User agents are encouraged to inspect the headers of an incoming response to determine if it is acceptable.\r\nIf the response could be unacceptable, a user agent SHOULD temporarily stop receipt of more data and query the user for a decision on further actions.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":not_acceptable" - } - } - }, - "407":{ - "code":"407", - "title":"Proxy Authentication Required", - "summary":"client must first authenticate itself with the proxy", - "descriptions":{ - "wikipedia":{ - "body":"The client must first authenticate itself with the proxy.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#407" - }, - "ietf":{ - "body":"This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy. The proxy MUST return a Proxy-Authenticate header field containing a challenge applicable to the proxy for the requested resource. The client MAY repeat the request with a suitable Proxy-Authorization header field. HTTP access authentication is explained in \"HTTP Authentication: Basic and Digest Access Authentication\".", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":proxy_authentication_required" - } - } - }, - "408":{ - "code":"408", - "title":"Request Timeout", - "summary":"server timed out waiting for the request", - "descriptions":{ - "wikipedia":{ - "body":"The server timed out waiting for the request. According to W3 HTTP specifications: \"The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.\"", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#408" - }, - "ietf":{ - "body":"The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":request_timeout" - } - } - }, - "409":{ - "code":"409", - "title":"Conflict", - "summary":"request could not be processed because of conflict", - "descriptions":{ - "wikipedia":{ - "body":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#409" - }, - "ietf":{ - "body":"The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough information for the user to recognize the source of the conflict. Ideally, the response entity would include enough information for the user or user agent to fix the problem; however, that might not be possible and is not required.\r\nConflicts are most likely to occur in response to a PUT request. For example, if versioning were being used and the entity being PUT included changes to a resource which conflict with those made by an earlier (third-party) request, the server might use the 409 response to indicate that it can't complete the request. In this case, the response entity would likely contain a list of the differences between the two versions in a format defined by the response Content-Type.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":conflict" - } - } - }, - "410":{ - "code":"410", - "title":"Gone", - "summary":"resource is no longer available and will not be available again", - "descriptions":{ - "wikipedia":{ - "body":"Indicates that the resource requested is no longer available and will not be available again. This should be used when a resource has been intentionally removed and the resource should be purged. Upon receiving a 410 status code, the client should not request the resource again in the future. Clients such as search engines should remove the resource from their indices. Most use cases do not require clients and search engines to purge the resource, and a \"404 Not Found\" may be used instead.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#410" - }, - "ietf":{ - "body":"The requested resource is no longer available at the server and no forwarding address is known. This condition is expected to be considered permanent. Clients with link editing capabilities SHOULD delete references to the Request-URI after user approval. If the server does not know, or has no facility to determine, whether or not the condition is permanent, the status code 404 (Not Found) SHOULD be used instead. This response is cacheable unless indicated otherwise.\r\nThe 410 response is primarily intended to assist the task of web maintenance by notifying the recipient that the resource is intentionally unavailable and that the server owners desire that remote links to that resource be removed. Such an event is common for limited-time, promotional services and for resources belonging to individuals no longer working at the server's site. It is not necessary to mark all permanently unavailable resources as \"gone\" or to keep the mark for any length of time -- that is left to the discretion of the server owner.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":gone" - } - } - }, - "411":{ - "code":"411", - "title":"Length Required", - "summary":"request did not specify the length of its content", - "descriptions":{ - "wikipedia":{ - "body":"The request did not specify the length of its content, which is required by the requested resource.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#411" - }, - "ietf":{ - "body":"The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":length_required" - } - } - }, - "412":{ - "code":"412", - "title":"Precondition Failed", - "summary":"server does not meet request preconditions", - "descriptions":{ - "wikipedia":{ - "body":"The server does not meet one of the preconditions that the requester put on the request.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#412" - }, - "ietf":{ - "body":"The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":precondition_failed" - } - } - }, - "413":{ - "code":"413", - "title":"Request Entity Too Large", - "summary":"request is larger than the server is willing or able to process", - "descriptions":{ - "wikipedia":{ - "body":"The request is larger than the server is willing or able to process.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#413" - }, - "ietf":{ - "body":"The server is refusing to process a request because the request entity is larger than the server is willing or able to process. The server MAY close the connection to prevent the client from continuing the request.\r\nIf the condition is temporary, the server SHOULD include a Retry- After header field to indicate that it is temporary and after what time the client MAY try again.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":request_entity_too_large" - } - } - }, - "414":{ - "code":"414", - "title":"Request-URI Too Long", - "summary":"URI provided was too long for the server to process", - "descriptions":{ - "wikipedia":{ - "body":"The URI provided was too long for the server to process.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#414" - }, - "ietf":{ - "body":"The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret. This rare condition is only likely to occur when a client has improperly converted a POST request to a GET request with long query information, when the client has descended into a URI \"black hole\" of redirection (e.g., a redirected URI prefix that points to a suffix of itself), or when the server is under attack by a client attempting to exploit security holes present in some servers using fixed-length buffers for reading or manipulating the Request-URI.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":request_uri_too_long" - } - } - }, - "415":{ - "code":"415", - "title":"Unsupported Media Type", - "summary":"server does not support media type", - "descriptions":{ - "wikipedia":{ - "body":"The request entity has a media type which the server or resource does not support. For example, the client uploads an image as image\/svg+xml, but the server requires that images use a different format.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#415" - }, - "ietf":{ - "body":"The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":unsupported_media_type" - } - } - }, - "416":{ - "code":"416", - "title":"Requested Range Not Satisfiable", - "summary":"client has asked for unprovidable portion of the file", - "descriptions":{ - "wikipedia":{ - "body":"The client has asked for a portion of the file, but the server cannot supply that portion. For example, if the client asked for a part of the file that lies beyond the end of the file.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#416" - }, - "ietf":{ - "body":"A server SHOULD return a response with this status code if a request included a Range request-header field, and none of the range-specifier values in this field overlap the current extent of the selected resource, and the request did not include an If-Range request-header field. (For byte-ranges, this means that the first- byte-pos of all of the byte-range-spec values were greater than the current length of the selected resource.)\r\nWhen this status code is returned for a byte-range request, the response SHOULD include a Content-Range entity-header field specifying the current length of the selected resource. This response MUST NOT use the multipart\/byteranges content- type.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":requested_range_not_satisfiable" - } - } - }, - "417":{ - "code":"417", - "title":"Expectation Failed", - "summary":"server cannot meet requirements of Expect request-header field", - "descriptions":{ - "wikipedia":{ - "body":"The server cannot meet the requirements of the Expect request-header field.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#417" - }, - "ietf":{ - "body":"The expectation given in an Expect request-header field could not be met by this server, or, if the server is a proxy, the server has unambiguous evidence that the request could not be met by the next-hop server.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":expectation_failed" - } - } - }, - "418":{ - "code":"418", - "title":"I'm a teapot (RFC 2324)", - "summary":"I'm a teapot", - "descriptions":{ - "wikipedia":{ - "body":"This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol, and is not expected to be implemented by actual HTTP servers. However, known implementations do exist. An Nginx HTTP server uses this code to simulate goto-like behaviour in its configuration.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#418" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":\"i'm_a_teapot\" (explanation<\/a> gist.github.com<\/sup>)<\/small>" - } - } - }, - "420":{ - "code":"420", - "title":"Enhance Your Calm", - "summary":"Twitter rate limiting", - "descriptions":{ - "wikipedia":{ - "body":"Returned by the Twitter Search and Trends API when the client is being rate limited.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#420" - } - } - }, - "422":{ - "code":"422", - "title":"Unprocessable Entity (WebDAV) (RFC 4918)", - "summary":"request unable to be followed due to semantic errors", - "descriptions":{ - "wikipedia":{ - "body":"The request was well-formed but was unable to be followed due to semantic errors.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#422" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":unprocessable_entity" - } - } - }, - "423":{ - "code":"423", - "title":"Locked (WebDAV) (RFC 4918)", - "summary":"resource that is being accessed is locked", - "descriptions":{ - "wikipedia":{ - "body":"The resource that is being accessed is locked.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#423" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":locked" - } - } - }, - "424":{ - "code":"424", - "title":"Failed Dependency (WebDAV) (RFC 4918)", - "summary":"request failed due to failure of a previous request", - "descriptions":{ - "wikipedia":{ - "body":"The request failed due to failure of a previous request (e.g. a PROPPATCH).", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#424" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":failed_dependency" - } - } - }, - "426":{ - "code":"426", - "title":"Upgrade Required (RFC 2817)", - "summary":"client should switch to a different protocol", - "descriptions":{ - "wikipedia":{ - "body":"The client should switch to a different protocol such as TLS\/1.0.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#426" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":upgrade_required" - } - } - }, - "428":{ - "code":"428", - "title":"Precondition Required", - "summary":"origin server requires the request to be conditional", - "descriptions":{ - "wikipedia":{ - "body":"The origin server requires the request to be conditional. Intended to prevent \"the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.\" Proposed in an Internet-Draft.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#428" - } - } - }, - "429":{ - "code":"429", - "title":"Too Many Requests", - "summary":"user has sent too many requests in a given amount of time", - "descriptions":{ - "wikipedia":{ - "body":"The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes. Proposed in an Internet-Draft.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#429" - } - } - }, - "431":{ - "code":"431", - "title":"Request Header Fields Too Large", - "summary":"server is unwilling to process the request", - "descriptions":{ - "wikipedia":{ - "body":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large. Proposed in an Internet-Draft.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#431" - } - } - }, - "444":{ - "code":"444", - "title":"No Response", - "summary":"server returns no information and closes the connection", - "descriptions":{ - "wikipedia":{ - "body":"An nginx HTTP server extension. The server returns no information to the client and closes the connection (useful as a deterrent for malware).", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#444" - } - } - }, - "449":{ - "code":"449", - "title":"Retry With", - "summary":"request should be retried after performing action", - "descriptions":{ - "wikipedia":{ - "body":"A Microsoft extension. The request should be retried after performing the appropriate action.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#449" - } - } - }, - "450":{ - "code":"450", - "title":"Blocked by Windows Parental Controls", - "summary":"Windows Parental Controls blocking access to webpage", - "descriptions":{ - "wikipedia":{ - "body":"A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#450" - } - } - }, - "451":{ - "code":"451", - "title":"Wrong Exchange server", - "summary":"the server cannot reach the client's mailbox", - "descriptions":{ - "MS-ASHTTP":{ - "body":"If the client is attempting to connect to the wrong server (that is, a server that cannot access the user's mailbox), or if there is a more efficient server to use to reach the user's mailbox, then a 451 Redirect error is returned.", - "link":"http://msdn.microsoft.com/en-us/library/gg651019" - } - } - }, - "499":{ - "code":"499", - "title":"Client Closed Request", - "summary":"connection closed by client while HTTP server is processing", - "descriptions":{ - "wikipedia":{ - "body":"An Nginx HTTP server extension. This code is introduced to log the case when the connection is closed by client while HTTP server is processing its request, making server unable to send the HTTP header back.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#499" - } - } - } - } -} diff --git a/codes/5.json b/codes/5.json deleted file mode 100644 index 96efbff..0000000 --- a/codes/5.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "class":{ - "title":"Server Error", - "class":"5" - }, - "codes":{ - "500":{ - "code":"500", - "title":"Internal Server Error", - "summary":"generic error message", - "descriptions":{ - "wikipedia":{ - "body":"A generic error message, given when no more specific message is suitable.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#500" - }, - "ietf":{ - "body":"The server encountered an unexpected condition which prevented it from fulfilling the request.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":internal_server_error" - } - } - }, - "501":{ - "code":"501", - "title":"Not Implemented", - "summary":"server does not recognise method or lacks ability to fulfill", - "descriptions":{ - "wikipedia":{ - "body":"The server either does not recognise the request method, or it lacks the ability to fulfill the request.[2]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#501" - }, - "ietf":{ - "body":"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.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":not_implemented" - } - } - }, - "502":{ - "code":"502", - "title":"Bad Gateway", - "summary":"server received an invalid response from upstream server", - "descriptions":{ - "wikipedia":{ - "body":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.[2]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#502" - }, - "ietf":{ - "body":"The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":bad_gateway" - } - } - }, - "503":{ - "code":"503", - "title":"Service Unavailable", - "summary":"server is currently unavailable", - "descriptions":{ - "wikipedia":{ - "body":"The server is currently unavailable (because it is overloaded or down for maintenance).[2] Generally, this is a temporary state.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#503" - }, - "ietf":{ - "body":"The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.\r\nNote: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":service_unavailable" - } - } - }, - "504":{ - "code":"504", - "title":"Gateway Timeout", - "summary":"gateway did not receive response from upstream server", - "descriptions":{ - "wikipedia":{ - "body":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.[2]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#504" - }, - "ietf":{ - "body":"The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request.\r\nNote: Note to implementors: some deployed proxies are known to return 400 or 500 when DNS lookups time out.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":gateway_timeout" - } - } - }, - "505":{ - "code":"505", - "title":"HTTP Version Not Supported", - "summary":"server does not support the HTTP protocol version", - "descriptions":{ - "wikipedia":{ - "body":"The server does not support the HTTP protocol version used in the request.[2]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#505" - }, - "ietf":{ - "body":"The server does not support, or refuses to support, the HTTP protocol version 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. The response SHOULD contain an entity describing why that version is not supported and what other protocols are supported by that server.", - "link":"http:\/\/www.ietf.org\/rfc\/rfc2616.txt" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":http_version_not_supported" - } - } - }, - "506":{ - "code":"506", - "title":"Variant Also Negotiates (RFC 2295)", - "summary":"content negotiation for the request results in a circular reference", - "descriptions":{ - "wikipedia":{ - "body":"Transparent content negotiation for the request results in a circular reference.[23]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#506" - } - } - }, - "507":{ - "code":"507", - "title":"Insufficient Storage (WebDAV) (RFC 4918)", - "summary":"server is unable to store the representation", - "descriptions":{ - "wikipedia":{ - "body":"The server is unable to store the representation needed to complete the request.[7]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#507" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":insufficient_storage" - } - } - }, - "508":{ - "code":"508", - "title":"Loop Detected (WebDAV) (RFC 5842)", - "summary":"server detected an infinite loop while processing the request", - "descriptions":{ - "wikipedia":{ - "body":"The server detected an infinite loop while processing the request (sent in lieu of 208).", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#508" - } - } - }, - "509":{ - "code":"509", - "title":"Bandwidth Limit Exceeded (Apache bw\/limited extension)", - "summary":"bandwidth limit exceeded", - "descriptions":{ - "wikipedia":{ - "body":"This status code, while used by many servers, is not specified in any RFCs.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#509" - } - } - }, - "510":{ - "code":"510", - "title":"Not Extended (RFC 2774)", - "summary":"further extensions to the request are required", - "descriptions":{ - "wikipedia":{ - "body":"Further extensions to the request are required for the server to fulfill it.[24]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#510" - } - }, - "references":{ - "rails":{ - "title":"Rails HTTP Status Symbol", - "value":":not_extended" - } - } - }, - "511":{ - "code":"511", - "title":"Network Authentication Required", - "summary":"client needs to authenticate to gain network access", - "descriptions":{ - "wikipedia":{ - "body":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network (e.g. \"captive portals\" used to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot). Proposed in an Internet-Draft.[19]", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#511" - } - } - }, - "598":{ - "code":"598", - "title":"Network read timeout error", - "summary":"network read timeout behind the proxy ", - "descriptions":{ - "wikipedia":{ - "body":"This status code is not specified in any RFCs, but is used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#598" - } - } - }, - "599":{ - "code":"599", - "title":"Network connect timeout error", - "summary":"network connect timeout behind the proxy", - "descriptions":{ - "wikipedia":{ - "body":"This status code is not specified in any RFCs, but is used by some HTTP proxies to signal a network connect timeout behind the proxy to a client in front of the proxy.", - "link":"http:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#599" - } - } - } - } -} \ No newline at end of file diff --git a/composer.json b/composer.json deleted file mode 100644 index 5f73512..0000000 --- a/composer.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "require": { - "klein/klein": "*" - }, - "minimum-stability": "dev" -} \ No newline at end of file diff --git a/humans.txt b/humans.txt deleted file mode 100644 index 3780475..0000000 --- a/humans.txt +++ /dev/null @@ -1,13 +0,0 @@ -/* TEAM */ - Captain: Samuel Ryan - Site: sam@samryan.co.uk - Twitter: citricsquid - Location: Brighton, England - -/* SITE */ - Last update: 2013-03-19 - Doctype: HTML5 - Languages: PHP5 - Frameworks: Klein.php - IDE: Netbeans - Repository: https://github.com/citricsquid/httpstatus.es \ No newline at end of file diff --git a/index.php b/index.php deleted file mode 100644 index 524f1ab..0000000 --- a/index.php +++ /dev/null @@ -1,28 +0,0 @@ -respond('GET', '/', function ($request, $response, $service) use ($httpstatuses) { - $class_list = $httpstatuses->statuses(); - $service->render('views/index.php', array("class_list" => $class_list)); -}); - -$klein->respond('GET', '/[i:id]', function ($request, $response, $service) use ($httpstatuses) { - $status_code = $request->param('id'); - $code = $httpstatuses->status($status_code); - - if (!$code) - $service->render('views/404.php'); - - $service->render('views/status_code.php', $code); -}); - -$klein->respond('GET', '404', function ($request, $response, $service) { - $service->render('views/404.php'); -}); - -$klein->dispatch(); \ No newline at end of file diff --git a/lib/Httpstatuses/Httpstatuses.php b/lib/Httpstatuses/Httpstatuses.php deleted file mode 100644 index aab8a13..0000000 --- a/lib/Httpstatuses/Httpstatuses.php +++ /dev/null @@ -1,32 +0,0 @@ - - - - - 404real — httpstatus.es - - - - - - - - - \ No newline at end of file diff --git a/views/index.php b/views/index.php deleted file mode 100644 index bd47f58..0000000 --- a/views/index.php +++ /dev/null @@ -1,75 +0,0 @@ - - - - - HTTP Status Codes — httpstatus.es - - - - - - - - -
-
- httpstatus.es - -
-
-
-

- Database of HTTP status codes with their IETF + Wikipedia - descriptions and helpful code references. - Maintained by - @citricsquid. - New codes and improvements can be commited via the - GitHub repository. -

-
-
- class_list as $id => $class) { ?> -
-
-
xx
-
-
-
- $info) { ?> -
- -
-
- -
-
-
- -
-
- - diff --git a/views/status_code.php b/views/status_code.php deleted file mode 100644 index 5b0a6ef..0000000 --- a/views/status_code.php +++ /dev/null @@ -1,62 +0,0 @@ - - - - - <?php echo $this->code; ?> — httpstatus.es - - - - - - - -
-
- code; ?> / title; ?> -
-
- descriptions as $type => $description) { ?> -

- ““ — "> -

- -
- references)) { ?> -
-
- code; ?> / code reference(s) -
-
- references as $reference) { ?> -
-
- -
-
- -
-
-
- -
-
-
- - -
- - \ No newline at end of file From e0a822263b0f7988ef033e5afcdbfdd4f471d99c Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sun, 1 Nov 2015 18:32:59 +0000 Subject: [PATCH 02/40] Adds development environment using Vagrant --- Vagrantfile | 356 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 356 insertions(+) create mode 100644 Vagrantfile diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..20a8a3f --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,356 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# Config Github Settings +github_username = "fideloper" +github_repo = "Vaprobash" +github_branch = "1.4.1" +github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}" + +# Because this:https://developer.github.com/changes/2014-12-08-removing-authorizations-token/ +# https://github.com/settings/tokens +github_pat = "" + +# Server Configuration + +hostname = "httpstatus.es.dev" + +# Set a local private network IP address. +# See http://en.wikipedia.org/wiki/Private_network for explanation +# You can use the following IP ranges: +# 10.0.0.1 - 10.255.255.254 +# 172.16.0.1 - 172.31.255.254 +# 192.168.0.1 - 192.168.255.254 +server_ip = "192.168.22.29" +server_cpus = "1" # Cores +server_memory = "384" # MB +server_swap = "768" # Options: false | int (MB) - Guideline: Between one or two times the server_memory + +# UTC for Universal Coordinated Time +# EST for Eastern Standard Time +# US/Central for American Central +# US/Eastern for American Eastern +server_timezone = "UTC" + +# Database Configuration +mysql_root_password = "root" # We'll assume user "root" +mysql_version = "5.5" # Options: 5.5 | 5.6 +mysql_enable_remote = "false" # remote access enabled when true +pgsql_root_password = "root" # We'll assume user "root" +mongo_version = "2.6" # Options: 2.6 | 3.0 +mongo_enable_remote = "false" # remote access enabled when true + +# Languages and Packages +php_timezone = "UTC" # http://php.net/manual/en/timezones.php +php_version = "5.6" # Options: 5.5 | 5.6 +ruby_version = "latest" # Choose what ruby version should be installed (will also be the default version) +ruby_gems = [ # List any Ruby Gems that you want to install + #"jekyll", + #"sass", + #"compass", +] + +go_version = "latest" # Example: go1.4 (latest equals the latest stable version) + +# To install HHVM instead of PHP, set this to "true" +hhvm = "false" + +# PHP Options +composer_packages = [ # List any global Composer packages that you want to install + #"phpunit/phpunit:4.0.*", + #"codeception/codeception=*", + #"phpspec/phpspec:2.0.*@dev", + #"squizlabs/php_codesniffer:1.5.*", +] + +# Default web server document root +# Symfony's public directory is assumed "web" +# Laravel's public directory is assumed "public" +public_folder = "/vagrant/build" + +laravel_root_folder = "/vagrant/laravel" # Where to install Laravel. Will `composer install` if a composer.json file exists +laravel_version = "latest-stable" # If you need a specific version of Laravel, set it here +symfony_root_folder = "/vagrant/symfony" # Where to install Symfony. + +nodejs_version = "5" # By default "latest" will equal the latest stable version +nodejs_packages = [ # List any global NodeJS packages that you want to install + #"grunt-cli", + "gulp", + "bower", + #"yo", +] + +# RabbitMQ settings +rabbitmq_user = "user" +rabbitmq_password = "password" + +sphinxsearch_version = "rel22" # rel20, rel21, rel22, beta, daily, stable + + +Vagrant.configure("2") do |config| + + # Set server to Ubuntu 14.04 + config.vm.box = "ubuntu/trusty64" + + config.vm.define "httpstatus.es.dev" do |vapro| + end + + if Vagrant.has_plugin?("vagrant-hostmanager") + config.hostmanager.enabled = true + config.hostmanager.manage_host = true + config.hostmanager.ignore_private_ip = false + config.hostmanager.include_offline = false + end + + # Create a hostname, don't forget to put it to the `hosts` file + # This will point to the server's default virtual host + # TO DO: Make this work with virtualhost along-side xip.io URL + config.vm.hostname = hostname + + # Create a static IP + config.vm.network :private_network, ip: server_ip + config.vm.network :forwarded_port, guest: 80, host: 8000 + + # Enable agent forwarding over SSH connections + config.ssh.forward_agent = true + + # Use NFS for the shared folder + config.vm.synced_folder ".", "/vagrant", + id: "core", + :nfs => true, + :mount_options => ['nolock,vers=3,udp,noatime,actimeo=2'] + + # Replicate local .gitconfig file if it exists + if File.file?(File.expand_path("~/.gitconfig")) + config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig" + end + + # If using VirtualBox + config.vm.provider :virtualbox do |vb| + + vb.name = "httpstatus.es.dev" + + # Set server cpus + vb.customize ["modifyvm", :id, "--cpus", server_cpus] + + # Set server memory + vb.customize ["modifyvm", :id, "--memory", server_memory] + + # Set the timesync threshold to 10 seconds, instead of the default 20 minutes. + # If the clock gets more than 15 minutes out of sync (due to your laptop going + # to sleep for instance, then some 3rd party services will reject requests. + vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000] + + # Prevent VMs running on Ubuntu to lose internet connection + # vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] + # vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] + + end + + # If using VMWare Fusion + config.vm.provider "vmware_fusion" do |vb, override| + override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box" + + # Set server memory + vb.vmx["memsize"] = server_memory + + end + + # If using Vagrant-Cachier + # http://fgrehm.viewdocs.io/vagrant-cachier + if Vagrant.has_plugin?("vagrant-cachier") + # Configure cached packages to be shared between instances of the same base box. + # Usage docs: http://fgrehm.viewdocs.io/vagrant-cachier/usage + config.cache.scope = :box + + config.cache.synced_folder_opts = { + type: :nfs, + mount_options: ['rw', 'vers=3', 'tcp', 'nolock'] + } + end + + # Adding vagrant-digitalocean provider - https://github.com/smdahlen/vagrant-digitalocean + # Needs to ensure that the vagrant plugin is installed + config.vm.provider :digital_ocean do |provider, override| + override.ssh.private_key_path = '~/.ssh/id_rsa' + override.ssh.username = 'vagrant' + override.vm.box = 'digital_ocean' + override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box" + + provider.token = 'YOUR TOKEN' + provider.image = 'ubuntu-14-04-x64' + provider.region = 'nyc2' + provider.size = '512mb' + end + + #### + # Base Items + ########## + + # Provision Base Packages + config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone] + + # optimize base box + config.vm.provision "shell", path: "#{github_url}/scripts/base_box_optimizations.sh", privileged: true + + # Provision PHP + # config.vm.provision "shell", path: "#{github_url}/scripts/php.sh", args: [php_timezone, hhvm, php_version] + + # Enable MSSQL for PHP + # config.vm.provision "shell", path: "#{github_url}/scripts/mssql.sh" + + # Provision Vim + # config.vm.provision "shell", path: "#{github_url}/scripts/vim.sh", args: github_url + + # Provision Docker + # config.vm.provision "shell", path: "#{github_url}/scripts/docker.sh", args: "permissions" + + #### + # Web Servers + ########## + + # Provision Apache Base + # config.vm.provision "shell", path: "#{github_url}/scripts/apache.sh", args: [server_ip, public_folder, hostname, github_url] + + # Provision Nginx Base + config.vm.provision "shell", path: "#{github_url}/scripts/nginx.sh", args: [server_ip, public_folder, hostname, github_url] + + + #### + # Databases + ########## + + # Provision MySQL + # config.vm.provision "shell", path: "#{github_url}/scripts/mysql.sh", args: [mysql_root_password, mysql_version, mysql_enable_remote] + + # Provision PostgreSQL + # config.vm.provision "shell", path: "#{github_url}/scripts/pgsql.sh", args: pgsql_root_password + + # Provision SQLite + # config.vm.provision "shell", path: "#{github_url}/scripts/sqlite.sh" + + # Provision RethinkDB + # config.vm.provision "shell", path: "#{github_url}/scripts/rethinkdb.sh", args: pgsql_root_password + + # Provision Couchbase + # config.vm.provision "shell", path: "#{github_url}/scripts/couchbase.sh" + + # Provision CouchDB + # config.vm.provision "shell", path: "#{github_url}/scripts/couchdb.sh" + + # Provision MongoDB + # config.vm.provision "shell", path: "#{github_url}/scripts/mongodb.sh", args: [mongo_enable_remote, mongo_version] + + # Provision MariaDB + # config.vm.provision "shell", path: "#{github_url}/scripts/mariadb.sh", args: [mysql_root_password, mysql_enable_remote] + + # Provision Neo4J + # config.vm.provision "shell", path: "#{github_url}/scripts/neo4j.sh" + + #### + # Search Servers + ########## + + # Install Elasticsearch + # config.vm.provision "shell", path: "#{github_url}/scripts/elasticsearch.sh" + + # Install SphinxSearch + # config.vm.provision "shell", path: "#{github_url}/scripts/sphinxsearch.sh", args: [sphinxsearch_version] + + #### + # Search Server Administration (web-based) + ########## + + # Install ElasticHQ + # Admin for: Elasticsearch + # Works on: Apache2, Nginx + # config.vm.provision "shell", path: "#{github_url}/scripts/elastichq.sh" + + + #### + # In-Memory Stores + ########## + + # Install Memcached + # config.vm.provision "shell", path: "#{github_url}/scripts/memcached.sh" + + # Provision Redis (without journaling and persistence) + # config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh" + + # Provision Redis (with journaling and persistence) + # config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh", args: "persistent" + # NOTE: It is safe to run this to add persistence even if originally provisioned without persistence + + + #### + # Utility (queue) + ########## + + # Install Beanstalkd + # config.vm.provision "shell", path: "#{github_url}/scripts/beanstalkd.sh" + + # Install Heroku Toolbelt + # config.vm.provision "shell", path: "https://toolbelt.heroku.com/install-ubuntu.sh" + + # Install Supervisord + # config.vm.provision "shell", path: "#{github_url}/scripts/supervisord.sh" + + # Install Kibana + # config.vm.provision "shell", path: "#{github_url}/scripts/kibana.sh" + + # Install ØMQ + # config.vm.provision "shell", path: "#{github_url}/scripts/zeromq.sh" + + # Install RabbitMQ + # config.vm.provision "shell", path: "#{github_url}/scripts/rabbitmq.sh", args: [rabbitmq_user, rabbitmq_password] + + #### + # Additional Languages + ########## + + # Install Nodejs + config.vm.provision "shell", path: "#{github_url}/scripts/nodejs.sh", privileged: false, args: nodejs_packages.unshift(nodejs_version, github_url) + + # Install Ruby Version Manager (RVM) + # config.vm.provision "shell", path: "#{github_url}/scripts/rvm.sh", privileged: false, args: ruby_gems.unshift(ruby_version) + + # Install Go Version Manager (GVM) + # config.vm.provision "shell", path: "#{github_url}/scripts/go.sh", privileged: false, args: [go_version] + + #### + # Frameworks and Tooling + ########## + + # Provision Composer + # You may pass a github auth token as the first argument + # config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: [github_pat, composer_packages.join(" ")] + + # Provision Laravel + # config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version] + + # Provision Symfony + # config.vm.provision "shell", path: "#{github_url}/scripts/symfony.sh", privileged: false, args: [server_ip, symfony_root_folder, public_folder] + + # Install Screen + # config.vm.provision "shell", path: "#{github_url}/scripts/screen.sh" + + # Install Mailcatcher + # config.vm.provision "shell", path: "#{github_url}/scripts/mailcatcher.sh" + + # Install git-ftp + # config.vm.provision "shell", path: "#{github_url}/scripts/git-ftp.sh", privileged: false + + # Install Ansible + # config.vm.provision "shell", path: "#{github_url}/scripts/ansible.sh" + + # Install Android + # config.vm.provision "shell", path: "#{github_url}/scripts/android.sh" + + #### + # Local Scripts + # Any local scripts you may want to run post-provisioning. + # Add these to the same directory as the Vagrantfile. + ########## + # config.vm.provision "shell", path: "./local-script.sh" + +end \ No newline at end of file From 0dd0db5ae8e0e544bcf0ef06d0a10427aa51aba3 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 20:39:33 +0000 Subject: [PATCH 03/40] Adds placeholder codes for development --- contents/codes/100.md | 7 +++++++ contents/codes/101.md | 7 +++++++ contents/codes/103.md | 7 +++++++ contents/codes/200.md | 7 +++++++ contents/codes/201.md | 7 +++++++ contents/codes/202.md | 7 +++++++ contents/codes/203.md | 7 +++++++ contents/codes/204.md | 7 +++++++ contents/codes/205.md | 7 +++++++ contents/codes/206.md | 7 +++++++ contents/codes/300.md | 7 +++++++ contents/codes/301.md | 8 ++++++++ contents/codes/302.md | 7 +++++++ contents/codes/303.md | 7 +++++++ contents/codes/304.md | 7 +++++++ contents/codes/305.md | 7 +++++++ contents/codes/307.md | 7 +++++++ contents/codes/400.md | 7 +++++++ contents/codes/401.md | 7 +++++++ contents/codes/402.md | 7 +++++++ contents/codes/403.md | 7 +++++++ contents/codes/404.md | 7 +++++++ contents/codes/405.md | 7 +++++++ contents/codes/406.md | 7 +++++++ contents/codes/407.md | 7 +++++++ contents/codes/408.md | 7 +++++++ contents/codes/409.md | 7 +++++++ contents/codes/410.md | 7 +++++++ contents/codes/411.md | 7 +++++++ contents/codes/412.md | 7 +++++++ contents/codes/413.md | 7 +++++++ contents/codes/414.md | 7 +++++++ contents/codes/415.md | 7 +++++++ contents/codes/416.md | 7 +++++++ contents/codes/417.md | 7 +++++++ contents/codes/418.md | 7 +++++++ contents/codes/500.md | 7 +++++++ contents/codes/501.md | 7 +++++++ contents/codes/503.md | 7 +++++++ contents/codes/504.md | 7 +++++++ contents/codes/505.md | 7 +++++++ 41 files changed, 288 insertions(+) create mode 100644 contents/codes/100.md create mode 100644 contents/codes/101.md create mode 100644 contents/codes/103.md create mode 100644 contents/codes/200.md create mode 100644 contents/codes/201.md create mode 100644 contents/codes/202.md create mode 100644 contents/codes/203.md create mode 100644 contents/codes/204.md create mode 100644 contents/codes/205.md create mode 100644 contents/codes/206.md create mode 100644 contents/codes/300.md create mode 100644 contents/codes/301.md create mode 100644 contents/codes/302.md create mode 100644 contents/codes/303.md create mode 100644 contents/codes/304.md create mode 100644 contents/codes/305.md create mode 100644 contents/codes/307.md create mode 100644 contents/codes/400.md create mode 100644 contents/codes/401.md create mode 100644 contents/codes/402.md create mode 100644 contents/codes/403.md create mode 100644 contents/codes/404.md create mode 100644 contents/codes/405.md create mode 100644 contents/codes/406.md create mode 100644 contents/codes/407.md create mode 100644 contents/codes/408.md create mode 100644 contents/codes/409.md create mode 100644 contents/codes/410.md create mode 100644 contents/codes/411.md create mode 100644 contents/codes/412.md create mode 100644 contents/codes/413.md create mode 100644 contents/codes/414.md create mode 100644 contents/codes/415.md create mode 100644 contents/codes/416.md create mode 100644 contents/codes/417.md create mode 100644 contents/codes/418.md create mode 100644 contents/codes/500.md create mode 100644 contents/codes/501.md create mode 100644 contents/codes/503.md create mode 100644 contents/codes/504.md create mode 100644 contents/codes/505.md diff --git a/contents/codes/100.md b/contents/codes/100.md new file mode 100644 index 0000000..184f149 --- /dev/null +++ b/contents/codes/100.md @@ -0,0 +1,7 @@ +--- +set: 1 +code: 100 +title: Continue +--- + +This is the content of the 100 status code \ No newline at end of file diff --git a/contents/codes/101.md b/contents/codes/101.md new file mode 100644 index 0000000..7f681d7 --- /dev/null +++ b/contents/codes/101.md @@ -0,0 +1,7 @@ +--- +set: 1 +code: 101 +title: Switching Protocols +--- + +This is the contents of the 101 status code \ No newline at end of file diff --git a/contents/codes/103.md b/contents/codes/103.md new file mode 100644 index 0000000..0a41ef4 --- /dev/null +++ b/contents/codes/103.md @@ -0,0 +1,7 @@ +--- +set: 1 +code: 103 +title: Checkpoint +--- + +This is the contents of the 103 status code \ No newline at end of file diff --git a/contents/codes/200.md b/contents/codes/200.md new file mode 100644 index 0000000..5c6bcfe --- /dev/null +++ b/contents/codes/200.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 200 +title: OK +--- + +This is the contents of the 200 status code \ No newline at end of file diff --git a/contents/codes/201.md b/contents/codes/201.md new file mode 100644 index 0000000..59b297b --- /dev/null +++ b/contents/codes/201.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 201 +title: Created +--- + +This is the contents of the 201 status code \ No newline at end of file diff --git a/contents/codes/202.md b/contents/codes/202.md new file mode 100644 index 0000000..b3f47d5 --- /dev/null +++ b/contents/codes/202.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 202 +title: Accepted +--- + +This is the contents of the 202 status code \ No newline at end of file diff --git a/contents/codes/203.md b/contents/codes/203.md new file mode 100644 index 0000000..06a6c91 --- /dev/null +++ b/contents/codes/203.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 203 +title: Non-authorative Information +--- + +This is the contents of the 203 status code \ No newline at end of file diff --git a/contents/codes/204.md b/contents/codes/204.md new file mode 100644 index 0000000..0100290 --- /dev/null +++ b/contents/codes/204.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 204 +title: No Content +--- + +This is the contents of the 204s status code \ No newline at end of file diff --git a/contents/codes/205.md b/contents/codes/205.md new file mode 100644 index 0000000..861e5f0 --- /dev/null +++ b/contents/codes/205.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 205 +title: Reset Content +--- + +This is the contents of the 205 status code \ No newline at end of file diff --git a/contents/codes/206.md b/contents/codes/206.md new file mode 100644 index 0000000..fa728a8 --- /dev/null +++ b/contents/codes/206.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 206 +title: Partial Content +--- + +This is the contents of the 206 status code \ No newline at end of file diff --git a/contents/codes/300.md b/contents/codes/300.md new file mode 100644 index 0000000..279664f --- /dev/null +++ b/contents/codes/300.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 300 +title: Multiple Choices +--- + +This is the contents of the 300 status code \ No newline at end of file diff --git a/contents/codes/301.md b/contents/codes/301.md new file mode 100644 index 0000000..a6de1ce --- /dev/null +++ b/contents/codes/301.md @@ -0,0 +1,8 @@ +--- +set: 3 +code: 301 +title: Moved Permanently +summary: this and all future requests directed to the given URI +--- + +This is the contents of the 301 status code \ No newline at end of file diff --git a/contents/codes/302.md b/contents/codes/302.md new file mode 100644 index 0000000..766841b --- /dev/null +++ b/contents/codes/302.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 302 +title: Found +--- + +This is the contents of the 300 status code \ No newline at end of file diff --git a/contents/codes/303.md b/contents/codes/303.md new file mode 100644 index 0000000..27db99b --- /dev/null +++ b/contents/codes/303.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 303 +title: See Other +--- + +This is the contents of the 201 status code \ No newline at end of file diff --git a/contents/codes/304.md b/contents/codes/304.md new file mode 100644 index 0000000..5cb7f7b --- /dev/null +++ b/contents/codes/304.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 304 +title: Not Modified +--- + +This is the contents of the 304 status code diff --git a/contents/codes/305.md b/contents/codes/305.md new file mode 100644 index 0000000..d638ff4 --- /dev/null +++ b/contents/codes/305.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 305 +title: Use Proxy +--- + +This is the contents of the 305 status code diff --git a/contents/codes/307.md b/contents/codes/307.md new file mode 100644 index 0000000..6ae18d3 --- /dev/null +++ b/contents/codes/307.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 307 +title: Temporary Redirect +--- + +This is the contents of the 307 status code diff --git a/contents/codes/400.md b/contents/codes/400.md new file mode 100644 index 0000000..fa46bc2 --- /dev/null +++ b/contents/codes/400.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 400 +title: Bad Request +--- + +This is the contents of the 400 status code diff --git a/contents/codes/401.md b/contents/codes/401.md new file mode 100644 index 0000000..d0f1667 --- /dev/null +++ b/contents/codes/401.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 401 +title: Unauthorized +--- + +This is the contents of the 401 status code diff --git a/contents/codes/402.md b/contents/codes/402.md new file mode 100644 index 0000000..4f9424f --- /dev/null +++ b/contents/codes/402.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 402 +title: Payment Required +--- + +This is the contents of the 402 status code diff --git a/contents/codes/403.md b/contents/codes/403.md new file mode 100644 index 0000000..3aa1307 --- /dev/null +++ b/contents/codes/403.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 403 +title: Forbidden +--- + +This is the contents of the 403 status code diff --git a/contents/codes/404.md b/contents/codes/404.md new file mode 100644 index 0000000..10aaabf --- /dev/null +++ b/contents/codes/404.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 404 +title: Not Found +--- + +This is the contents of the 404 status code diff --git a/contents/codes/405.md b/contents/codes/405.md new file mode 100644 index 0000000..d82b4b8 --- /dev/null +++ b/contents/codes/405.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 405 +title: Method Not Allowed +--- + +This is the contents of the 405 status code diff --git a/contents/codes/406.md b/contents/codes/406.md new file mode 100644 index 0000000..7c35c27 --- /dev/null +++ b/contents/codes/406.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 406 +title: Not Acceptable +--- + +This is the contents of the 406 status code diff --git a/contents/codes/407.md b/contents/codes/407.md new file mode 100644 index 0000000..b86c483 --- /dev/null +++ b/contents/codes/407.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 407 +title: Proxy Authentication Required +--- + +This is the contents of the 407 status code diff --git a/contents/codes/408.md b/contents/codes/408.md new file mode 100644 index 0000000..117b4b9 --- /dev/null +++ b/contents/codes/408.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 408 +title: Request Timeout +--- + +This is the contents of the 408 status code diff --git a/contents/codes/409.md b/contents/codes/409.md new file mode 100644 index 0000000..6583dd9 --- /dev/null +++ b/contents/codes/409.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 409 +title: Conflict +--- + +This is the contents of the 409 status code diff --git a/contents/codes/410.md b/contents/codes/410.md new file mode 100644 index 0000000..0b814f1 --- /dev/null +++ b/contents/codes/410.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 410 +title: Gone +--- + +This is the contents of the 410 status code diff --git a/contents/codes/411.md b/contents/codes/411.md new file mode 100644 index 0000000..90e114c --- /dev/null +++ b/contents/codes/411.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 411 +title: Length Required +--- + +This is the contents of the 411 status code diff --git a/contents/codes/412.md b/contents/codes/412.md new file mode 100644 index 0000000..ceee4e5 --- /dev/null +++ b/contents/codes/412.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 412 +title: Precondition Failed +--- + +This is the contents of the 412 status code diff --git a/contents/codes/413.md b/contents/codes/413.md new file mode 100644 index 0000000..1ae51bb --- /dev/null +++ b/contents/codes/413.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 413 +title: Request Entity Too Large +--- + +This is the contents of the 413 status code diff --git a/contents/codes/414.md b/contents/codes/414.md new file mode 100644 index 0000000..54da908 --- /dev/null +++ b/contents/codes/414.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 414 +title: Request-URI Too Long +--- + +This is the contents of the 414 status code diff --git a/contents/codes/415.md b/contents/codes/415.md new file mode 100644 index 0000000..9bb649f --- /dev/null +++ b/contents/codes/415.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 415 +title: Unsupported Media Type +--- + +This is the contents of the 415 status code diff --git a/contents/codes/416.md b/contents/codes/416.md new file mode 100644 index 0000000..34e9915 --- /dev/null +++ b/contents/codes/416.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 416 +title: Requested Range Not Satisfiable +--- + +This is the contents of the 416 status code diff --git a/contents/codes/417.md b/contents/codes/417.md new file mode 100644 index 0000000..7ba3e44 --- /dev/null +++ b/contents/codes/417.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 417 +title: Expectation Failed +--- + +This is the contents of the 417 status code diff --git a/contents/codes/418.md b/contents/codes/418.md new file mode 100644 index 0000000..0d041eb --- /dev/null +++ b/contents/codes/418.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 418 +title: I'm a teapot +--- + +This is the contents of the 418 status code diff --git a/contents/codes/500.md b/contents/codes/500.md new file mode 100644 index 0000000..cc5e36d --- /dev/null +++ b/contents/codes/500.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 500 +title: Internal Server Error +--- + +This is the contents of the 500 status code diff --git a/contents/codes/501.md b/contents/codes/501.md new file mode 100644 index 0000000..fe78a3f --- /dev/null +++ b/contents/codes/501.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 501 +title: Not Implemented +--- + +This is the contents of the 501 status code diff --git a/contents/codes/503.md b/contents/codes/503.md new file mode 100644 index 0000000..402e136 --- /dev/null +++ b/contents/codes/503.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 503 +title: Service Unavailable +--- + +This is the contents of the 503 status code diff --git a/contents/codes/504.md b/contents/codes/504.md new file mode 100644 index 0000000..6e7ec26 --- /dev/null +++ b/contents/codes/504.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 504 +title: Gateway Timeout +--- + +This is the contents of the 504 status code diff --git a/contents/codes/505.md b/contents/codes/505.md new file mode 100644 index 0000000..e31321f --- /dev/null +++ b/contents/codes/505.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 505 +title: HTTP Version Not Supported +--- + +This is the contents of the 505 status code From ce8b0cca18767b7232aa4af8a0fdb163827fc964 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 20:40:10 +0000 Subject: [PATCH 04/40] Adds index and error pages --- contents/error-404.md | 13 +++++++++++++ contents/error-500.md | 13 +++++++++++++ contents/index.md | 14 ++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 contents/error-404.md create mode 100644 contents/error-500.md create mode 100644 contents/index.md diff --git a/contents/error-404.md b/contents/error-404.md new file mode 100644 index 0000000..9744700 --- /dev/null +++ b/contents/error-404.md @@ -0,0 +1,13 @@ +--- +title: Page Not Found +layout: page.jade +--- + +# 404 Page Note Found + +This isn't a page to explain a status code, it's an actual 404. +The page you have requested can't be found. If you didn't expect to see +this error please +[create an issue via GitHub](https://github.com/citricsquid/httpstatus.es/issues). + +If you want to learn more about what a 404 is, visit [/404](/404)! \ No newline at end of file diff --git a/contents/error-500.md b/contents/error-500.md new file mode 100644 index 0000000..e1314f6 --- /dev/null +++ b/contents/error-500.md @@ -0,0 +1,13 @@ +--- +title: Internal Server Error +layout: page.jade +--- + +# Internal Server Error + +This isn't a page to explain a status code, it's an actual 500, an Internal Server +Error. The page you have requested couldn't be delivered for an unknown reason. +If you didn't expect to see this error please +[create an issue via GitHub](https://github.com/citricsquid/httpstatus.es/issues). + +If you want to learn more about what a 500 is, visit [/500](/500)! \ No newline at end of file diff --git a/contents/index.md b/contents/index.md new file mode 100644 index 0000000..581d762 --- /dev/null +++ b/contents/index.md @@ -0,0 +1,14 @@ +--- +title: HTTP Status Codes +layout: index.jade +--- + +# HTTP Status Codes + +httpstatus.es is an easy to reference database of HTTP Status Codes with their +definitions and helpful code references all in one place. Visit an individual +status code via `httpstatus.es/code` or browse the list below. + +Hosting sponsored by [Runscope](https://www.runscope.com/t/httpstatuses), +source code available on +[GitHub](https://github.com/citricsquid/httpstatus.es). \ No newline at end of file From 79730d5937aaa3cb5f887d7366b94439f718f502 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 20:40:30 +0000 Subject: [PATCH 05/40] Adds project readme --- README.md | 7 +-- contents/robots.txt | 2 + contents/style.scss | 107 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 contents/robots.txt create mode 100644 contents/style.scss diff --git a/README.md b/README.md index 7aa4889..82247f9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ -httpstatus.es is an easy to reference directory of HTTP Status Codes with straight forward descriptions, -code references and additional detailed descriptions from the IETF HTTP Working Group. Each HTTP Status Code -is available at httpstatus.es/status_code. \ No newline at end of file +# httpstatus.es + +httpstatus.es is an easy to reference database of HTTP Status Codes with their +definitions and helpful code references all in one place. \ No newline at end of file diff --git a/contents/robots.txt b/contents/robots.txt new file mode 100644 index 0000000..6f27bb6 --- /dev/null +++ b/contents/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file diff --git a/contents/style.scss b/contents/style.scss new file mode 100644 index 0000000..9f41377 --- /dev/null +++ b/contents/style.scss @@ -0,0 +1,107 @@ +$container-width: 528px; + +@import "../bower_components/Skeleton-Sass/scss/skeleton.scss"; + +.container { + margin: auto; + max-width: $container-width; +} + +@media (max-width: 400px) { + .container { + width: 80%; + } +} + +body { + color: #556270; + font-family: 'Open Sans', sans-serif; + font-weight: normal; + margin: 0px; +} + +a { + color: #556270; + font-weight: bold; + text-decoration: none; +} + +a[href^='https://www.runscope.com'] { + color: #1b70e0; + font-weight: bold; +} + +h1, h2, h3, h4, h5, h6 { + color: #333; + font-family: 'Montserrat', sans-serif; + font-size: 20px; + margin-bottom: 8px; +} + +p { + font-size: 14px; + margin-bottom: 10px; +} + +.hero { + @extend .u-full-width; + padding: 25px 0px 10px 0px; +} + +.introduction { + // border-bottom: 4px solid #f9f9f9; +} + +.codes { + margin-bottom: 40px; + + section { + margin-bottom: 10px; + + h2 { + font-weight: bold; + } + + h2, h3 { + font-family: 'Open Sans', sans-serif; + font-size: 14px; + letter-spacing: 0.5px; + margin-bottom: 2px; + + a { + font-weight: normal; + } + + a:hover { + color: #d6156d; + } + + a span { + color: #d6156d; + font-family: 'Source Code Pro'; + width: 34px; + } + } + } +} + +.code { + margin: 25px auto; + + h1 { + font-family: 'Source Code Pro'; + letter-spacing: 0.5px; + text-transform: uppercase; + + span { + color: #d6156d; + } + } + + h2 { + color: #bbb; + font-family: 'Source Code Pro'; + letter-spacing: 0.5px; + text-transform: uppercase; + } +} \ No newline at end of file From 91f610fae7429ed033680c41778fc16b0fedbf79 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 20:40:58 +0000 Subject: [PATCH 06/40] builds site using Metalsmith --- bower.json | 22 +++++++++++++++ build.js | 53 +++++++++++++++++++++++++++++++++++++ contents/codes/classes.json | 17 ++++++++++++ package.json | 34 ++++++++++++++++++++++++ templates/code.jade | 12 +++++++++ templates/index.jade | 12 +++++++++ templates/layout.jade | 13 +++++++++ templates/page.jade | 4 +++ 8 files changed, 167 insertions(+) create mode 100644 bower.json create mode 100644 build.js create mode 100644 contents/codes/classes.json create mode 100644 package.json create mode 100644 templates/code.jade create mode 100644 templates/index.jade create mode 100644 templates/layout.jade create mode 100644 templates/page.jade diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..578f7bd --- /dev/null +++ b/bower.json @@ -0,0 +1,22 @@ +{ + "name": "httpstatus.es", + "description": "An easy to reference directory of HTTP Status Codes", + "main": "build.js", + "authors": [ + "Samuel Ryan " + ], + "license": "MIT", + "homepage": "https://github.com/citricsquid/httpstatus.es", + "moduleType": [], + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "Skeleton-Sass": "skeleton-scss#*" + } +} diff --git a/build.js b/build.js new file mode 100644 index 0000000..f0a360b --- /dev/null +++ b/build.js @@ -0,0 +1,53 @@ +var Metalsmith = require('metalsmith'); +var markdown = require('metalsmith-markdown'); +var collections = require('metalsmith-collections'); +var layouts = require('metalsmith-layouts'); +var branch = require('metalsmith-branch'); +var sass = require('metalsmith-sass'); +var elevate = require('metalsmith-elevate'); +var ignore = require('metalsmith-ignore'); +var collectionGrouping = require('metalsmith-collection-grouping'); + +var metalsmith = Metalsmith(__dirname); + metalsmith + .source('contents') + .destination('build') + + .use(collections({ + pages: { + pattern: '*.md' + }, + codes: { + pattern: 'codes/*.md', + sortBy: 'code' + } + })) + + .use(collectionGrouping({ + codes: { + groupBy: 'set', // set instead of class, because class is a reserved word... + meta: 'codes/classes.json' + } + })) + + .use(branch('*.scss') + .use(sass()) + ) + + .use(branch('**/*.md') + .use(markdown()) + .use(layouts({ + engine: 'jade', + directory: 'templates', + default: 'code.jade', + pretty: true + })) + ) + + .use(elevate('codes/*.html')) + .use(ignore('**/*.json')) + + .build(function (err) { + if (err) throw err; + console.log('Build successful!'); + }); \ No newline at end of file diff --git a/contents/codes/classes.json b/contents/codes/classes.json new file mode 100644 index 0000000..ab6648b --- /dev/null +++ b/contents/codes/classes.json @@ -0,0 +1,17 @@ +{ + "1": { + "title": "1×× Informational" + }, + "2": { + "title": "2×× Success" + }, + "3": { + "title": "3×× Redirection" + }, + "4": { + "title": "4×× Client Error" + }, + "5": { + "title": "5×× Server Error" + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..eff7ed3 --- /dev/null +++ b/package.json @@ -0,0 +1,34 @@ +{ + "name": "httpstatus.es", + "version": "0.1.0", + "description": "An easy to reference directory of HTTP Status Codes", + "main": "build.js", + "scripts": { + "test": "build.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/citricsquid/httpstatus.es.git" + }, + "author": "Samuel Ryan ", + "license": "MIT", + "bugs": { + "url": "https://github.com/citricsquid/httpstatus.es/issues" + }, + "homepage": "https://github.com/citricsquid/httpstatus.es#readme", + "dependencies": { + "bower": "^1.6.5", + "jade": "^1.11.0", + "lodash.groupby": "^3.1.1", + "metalsmith": "^2.1.0", + "metalsmith-branch": "0.0.4", + "metalsmith-collection-grouping": "^0.1.0", + "metalsmith-collections": "^0.7.0", + "metalsmith-elevate": "0.0.0", + "metalsmith-ignore": "^0.1.2", + "metalsmith-layouts": "^1.4.2", + "metalsmith-markdown": "^0.2.1", + "metalsmith-sass": "^1.3.0", + "metalsmith-writemetadata": "^0.4.5" + } +} diff --git a/templates/code.jade b/templates/code.jade new file mode 100644 index 0000000..dcc71ec --- /dev/null +++ b/templates/code.jade @@ -0,0 +1,12 @@ +extends layout.jade + +block title + title !{code} !{title} — httpstatus.es + +block contents + .code + article.container.code: .row: .twelve.columns + h2 !{groups.codes[set].title} + h1 #[span !{code}] !{title} + != contents + a(href='/') ← Return to httpstatus.es \ No newline at end of file diff --git a/templates/index.jade b/templates/index.jade new file mode 100644 index 0000000..094d728 --- /dev/null +++ b/templates/index.jade @@ -0,0 +1,12 @@ +extends layout.jade + +block contents + .hero.introduction: .container: .row: .twelve.columns !{contents} + + .container.codes + each group in groups.codes + section + h2 !{group.title} + each code in group.items + article + h3 #[a(href='/#{code.code}') #[span !{code.code}] #{code.title}] \ No newline at end of file diff --git a/templates/layout.jade b/templates/layout.jade new file mode 100644 index 0000000..22f3a25 --- /dev/null +++ b/templates/layout.jade @@ -0,0 +1,13 @@ +block title + title #{title} — httpstatus.es + +doctype html +html(lang="en") + head + block title + // link(rel='shortcut icon', href='/favicon.ico', type='image/x-icon') + link(rel='stylesheet', href='/style.css') + link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Source+Code+Pro:700', type='text/css') + meta(name='viewport', content='width=device-width, initial-scale=1.0') + body + block contents \ No newline at end of file diff --git a/templates/page.jade b/templates/page.jade new file mode 100644 index 0000000..bc03bc3 --- /dev/null +++ b/templates/page.jade @@ -0,0 +1,4 @@ +extends layout.jade + +block contents + .hero.introduction: .container: .row: .twelve.columns !{contents} \ No newline at end of file From 747189f6b5b4b60259ac6e616d6cfbe78255a62a Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 21:10:41 +0000 Subject: [PATCH 07/40] Adds support for code references on code pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: set: 2 code: 200 title: OK references: "Rails HTTP Status Symbol": “:ok” --- templates/code.jade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/code.jade b/templates/code.jade index dcc71ec..49c782f 100644 --- a/templates/code.jade +++ b/templates/code.jade @@ -9,4 +9,8 @@ block contents h2 !{groups.codes[set].title} h1 #[span !{code}] !{title} != contents + if references + h1 #[span !{code}] Code References + each value, key in references + p !{key} !{value} a(href='/') ← Return to httpstatus.es \ No newline at end of file From a32c0342aaf16a3b81db5ecc4507ae1cb6c40eac Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 21:23:15 +0000 Subject: [PATCH 08/40] Wraps reference value in code tags --- contents/style.scss | 4 ++++ templates/code.jade | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/contents/style.scss b/contents/style.scss index 9f41377..2a7a1af 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -43,6 +43,10 @@ p { margin-bottom: 10px; } +code { + background-color: #fff; +} + .hero { @extend .u-full-width; padding: 25px 0px 10px 0px; diff --git a/templates/code.jade b/templates/code.jade index 49c782f..1359d74 100644 --- a/templates/code.jade +++ b/templates/code.jade @@ -12,5 +12,5 @@ block contents if references h1 #[span !{code}] Code References each value, key in references - p !{key} !{value} + p !{key} #[code !{value}] a(href='/') ← Return to httpstatus.es \ No newline at end of file From 4658391fc9dd9955c5f24f90c8f9d08464616c70 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 21:36:13 +0000 Subject: [PATCH 09/40] Adds asset revisioning --- build.js | 3 +++ package.json | 4 +++- templates/layout.jade | 3 +-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.js b/build.js index f0a360b..d7a4585 100644 --- a/build.js +++ b/build.js @@ -7,6 +7,7 @@ var sass = require('metalsmith-sass'); var elevate = require('metalsmith-elevate'); var ignore = require('metalsmith-ignore'); var collectionGrouping = require('metalsmith-collection-grouping'); +var fingerprint = require('metalsmith-fingerprint-ignore'); var metalsmith = Metalsmith(__dirname); metalsmith @@ -34,6 +35,8 @@ var metalsmith = Metalsmith(__dirname); .use(sass()) ) + .use(fingerprint({pattern: ['style.css']})) + .use(branch('**/*.md') .use(markdown()) .use(layouts({ diff --git a/package.json b/package.json index eff7ed3..3c861a5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "An easy to reference directory of HTTP Status Codes", "main": "build.js", "scripts": { - "test": "build.js" + "start": "node build.js", + "test": "node build.js" }, "repository": { "type": "git", @@ -25,6 +26,7 @@ "metalsmith-collection-grouping": "^0.1.0", "metalsmith-collections": "^0.7.0", "metalsmith-elevate": "0.0.0", + "metalsmith-fingerprint-ignore": "^1.1.2", "metalsmith-ignore": "^0.1.2", "metalsmith-layouts": "^1.4.2", "metalsmith-markdown": "^0.2.1", diff --git a/templates/layout.jade b/templates/layout.jade index 22f3a25..75dbd55 100644 --- a/templates/layout.jade +++ b/templates/layout.jade @@ -5,8 +5,7 @@ doctype html html(lang="en") head block title - // link(rel='shortcut icon', href='/favicon.ico', type='image/x-icon') - link(rel='stylesheet', href='/style.css') + link(rel='stylesheet', href='/' + fingerprint['style.css']) link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Source+Code+Pro:700', type='text/css') meta(name='viewport', content='width=device-width, initial-scale=1.0') body From 5df21bbd9cb2d8117b2d43894b456dc1e5bb9a92 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 21:38:18 +0000 Subject: [PATCH 10/40] Adds return to index links to error pages --- contents/error-404.md | 4 +++- contents/error-500.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contents/error-404.md b/contents/error-404.md index 9744700..87ca4b3 100644 --- a/contents/error-404.md +++ b/contents/error-404.md @@ -10,4 +10,6 @@ The page you have requested can't be found. If you didn't expect to see this error please [create an issue via GitHub](https://github.com/citricsquid/httpstatus.es/issues). -If you want to learn more about what a 404 is, visit [/404](/404)! \ No newline at end of file +If you want to learn more about what a 404 is, visit [/404](/404)! + +[← Return to httpstatus.es](/) \ No newline at end of file diff --git a/contents/error-500.md b/contents/error-500.md index e1314f6..f874b7c 100644 --- a/contents/error-500.md +++ b/contents/error-500.md @@ -10,4 +10,6 @@ Error. The page you have requested couldn't be delivered for an unknown reason. If you didn't expect to see this error please [create an issue via GitHub](https://github.com/citricsquid/httpstatus.es/issues). -If you want to learn more about what a 500 is, visit [/500](/500)! \ No newline at end of file +If you want to learn more about what a 500 is, visit [/500](/500)! + +[← Return to httpstatus.es](/) \ No newline at end of file From 8ba438311ee1ecc403f934c70bfae7189001232e Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 21:55:41 +0000 Subject: [PATCH 11/40] Adds missing status code files --- contents/codes/102.md | 7 +++++++ contents/codes/103.md | 7 ------- contents/codes/207.md | 7 +++++++ contents/codes/208.md | 7 +++++++ contents/codes/226.md | 7 +++++++ contents/codes/308.md | 7 +++++++ contents/codes/421.md | 7 +++++++ contents/codes/422.md | 7 +++++++ contents/codes/423.md | 7 +++++++ contents/codes/424.md | 7 +++++++ contents/codes/426.md | 7 +++++++ contents/codes/428.md | 7 +++++++ contents/codes/429.md | 7 +++++++ contents/codes/431.md | 7 +++++++ contents/codes/499.md | 9 +++++++++ contents/codes/506.md | 7 +++++++ contents/codes/507.md | 7 +++++++ contents/codes/508.md | 7 +++++++ contents/codes/510.md | 7 +++++++ contents/codes/511.md | 7 +++++++ contents/codes/599.md | 9 +++++++++ 21 files changed, 144 insertions(+), 7 deletions(-) create mode 100644 contents/codes/102.md delete mode 100644 contents/codes/103.md create mode 100644 contents/codes/207.md create mode 100644 contents/codes/208.md create mode 100644 contents/codes/226.md create mode 100644 contents/codes/308.md create mode 100644 contents/codes/421.md create mode 100644 contents/codes/422.md create mode 100644 contents/codes/423.md create mode 100644 contents/codes/424.md create mode 100644 contents/codes/426.md create mode 100644 contents/codes/428.md create mode 100644 contents/codes/429.md create mode 100644 contents/codes/431.md create mode 100644 contents/codes/499.md create mode 100644 contents/codes/506.md create mode 100644 contents/codes/507.md create mode 100644 contents/codes/508.md create mode 100644 contents/codes/510.md create mode 100644 contents/codes/511.md create mode 100644 contents/codes/599.md diff --git a/contents/codes/102.md b/contents/codes/102.md new file mode 100644 index 0000000..c882c8c --- /dev/null +++ b/contents/codes/102.md @@ -0,0 +1,7 @@ +--- +set: 1 +code: 102 +title: Processing +--- + +This is the contents of the 102 status code \ No newline at end of file diff --git a/contents/codes/103.md b/contents/codes/103.md deleted file mode 100644 index 0a41ef4..0000000 --- a/contents/codes/103.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -set: 1 -code: 103 -title: Checkpoint ---- - -This is the contents of the 103 status code \ No newline at end of file diff --git a/contents/codes/207.md b/contents/codes/207.md new file mode 100644 index 0000000..e3d1ce1 --- /dev/null +++ b/contents/codes/207.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 207 +title: Multi-Status +--- + +This is the contents of the 207 status code \ No newline at end of file diff --git a/contents/codes/208.md b/contents/codes/208.md new file mode 100644 index 0000000..9ecdaec --- /dev/null +++ b/contents/codes/208.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 208 +title: Already Reported +--- + +This is the contents of the 208 status code \ No newline at end of file diff --git a/contents/codes/226.md b/contents/codes/226.md new file mode 100644 index 0000000..998d17b --- /dev/null +++ b/contents/codes/226.md @@ -0,0 +1,7 @@ +--- +set: 2 +code: 226 +title: IM Used +--- + +This is the contents of the 226 status code \ No newline at end of file diff --git a/contents/codes/308.md b/contents/codes/308.md new file mode 100644 index 0000000..d7a16ea --- /dev/null +++ b/contents/codes/308.md @@ -0,0 +1,7 @@ +--- +set: 3 +code: 308 +title: Permanent Redirect +--- + +This is the contents of the 308 status code diff --git a/contents/codes/421.md b/contents/codes/421.md new file mode 100644 index 0000000..af0ea8c --- /dev/null +++ b/contents/codes/421.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 421 +title: Misdirected Request +--- + +This is the contents of the 421 status code diff --git a/contents/codes/422.md b/contents/codes/422.md new file mode 100644 index 0000000..9a4bd16 --- /dev/null +++ b/contents/codes/422.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 422 +title: Unprocessable Entity +--- + +This is the contents of the 422 status code diff --git a/contents/codes/423.md b/contents/codes/423.md new file mode 100644 index 0000000..69f456e --- /dev/null +++ b/contents/codes/423.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 423 +title: Locked +--- + +This is the contents of the 423 status code diff --git a/contents/codes/424.md b/contents/codes/424.md new file mode 100644 index 0000000..1bfeaf4 --- /dev/null +++ b/contents/codes/424.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 424 +title: Failed Dependency +--- + +This is the contents of the 418 status code diff --git a/contents/codes/426.md b/contents/codes/426.md new file mode 100644 index 0000000..5bb79ad --- /dev/null +++ b/contents/codes/426.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 426 +title: Upgrade Required +--- + +This is the contents of the 426 status code diff --git a/contents/codes/428.md b/contents/codes/428.md new file mode 100644 index 0000000..47fb562 --- /dev/null +++ b/contents/codes/428.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 428 +title: Precondition Required +--- + +This is the contents of the 428 status code diff --git a/contents/codes/429.md b/contents/codes/429.md new file mode 100644 index 0000000..758bf97 --- /dev/null +++ b/contents/codes/429.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 429 +title: Too Many Requests +--- + +This is the contents of the 429 status code diff --git a/contents/codes/431.md b/contents/codes/431.md new file mode 100644 index 0000000..601b6a9 --- /dev/null +++ b/contents/codes/431.md @@ -0,0 +1,7 @@ +--- +set: 4 +code: 431 +title: Request Header Fields Too Large +--- + +This is the contents of the 431 status code diff --git a/contents/codes/499.md b/contents/codes/499.md new file mode 100644 index 0000000..f4f3b11 --- /dev/null +++ b/contents/codes/499.md @@ -0,0 +1,9 @@ +--- +# This is not a status code available in the standard, but it exists +# with significant prominence in the wild +set: 4 +code: 499 +title: Client Closed Request +--- + +This is the contents of the 499 status code diff --git a/contents/codes/506.md b/contents/codes/506.md new file mode 100644 index 0000000..a0e4ddb --- /dev/null +++ b/contents/codes/506.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 506 +title: Variant Also Negotiates +--- + +This is the contents of the 506 status code diff --git a/contents/codes/507.md b/contents/codes/507.md new file mode 100644 index 0000000..0fe2378 --- /dev/null +++ b/contents/codes/507.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 507 +title: Insufficient Storage +--- + +This is the contents of the 507 status code diff --git a/contents/codes/508.md b/contents/codes/508.md new file mode 100644 index 0000000..39c0cc5 --- /dev/null +++ b/contents/codes/508.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 508 +title: Loop Detected +--- + +This is the contents of the 508 status code diff --git a/contents/codes/510.md b/contents/codes/510.md new file mode 100644 index 0000000..c6e192d --- /dev/null +++ b/contents/codes/510.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 510 +title: Not Extended +--- + +This is the contents of the 510 status code diff --git a/contents/codes/511.md b/contents/codes/511.md new file mode 100644 index 0000000..df8a065 --- /dev/null +++ b/contents/codes/511.md @@ -0,0 +1,7 @@ +--- +set: 5 +code: 511 +title: Network Authentication Required +--- + +This is the contents of the 511 status code diff --git a/contents/codes/599.md b/contents/codes/599.md new file mode 100644 index 0000000..114cc85 --- /dev/null +++ b/contents/codes/599.md @@ -0,0 +1,9 @@ +--- +# This is not a status code available in the standard, but it exists +# with significant prominence in the wild +set: 5 +code: 599 +title: Network Connect Timeout Error +--- + +This is the contents of the 599 status code From df66eea6636779abcdcf9f5f4429961b8c41353d Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 22:01:43 +0000 Subject: [PATCH 12/40] Deploys project with CircleCI --- circle.yml | 14 ++++++++++++++ deploy.sh | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 circle.yml create mode 100644 deploy.sh diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..a8a06b4 --- /dev/null +++ b/circle.yml @@ -0,0 +1,14 @@ +machine: + node: + version: 4.1.0 + +dependencies: + post: + - bower install + - node build + +deployment: + production: + branch: metalsmith + commands: + - ./deploy.sh \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..92749dd --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ +build="build-${CIRCLE_BUILD_NUM}" +sudo mkdir ~/${build} +sudo cp -R ~/httpstatus.es/build/. ~/${build} +echo "Deploying ${build} to ${DEPLOY_TARGET}" +rsync -r -l ~/${build} ${DEPLOY_TARGET}:/srv/www/httpstatus.es +ssh ${DEPLOY_TARGET} "ln -sfn /srv/www/httpstatus.es/${build} /srv/www/httpstatus.es/live" +echo "Build deployed and pushed live" \ No newline at end of file From c293d5a6e9c030d85ce4cd55b73fc2f9a09571b5 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 22:04:43 +0000 Subject: [PATCH 13/40] updates readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82247f9..d726f44 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# httpstatus.es +# [httpstatus.es](http://httpstatus.es) -httpstatus.es is an easy to reference database of HTTP Status Codes with their -definitions and helpful code references all in one place. \ No newline at end of file +[httpstatus.es](http://httpstatus.es) is an easy to reference database of HTTP Status Codes +with their definitions and helpful code references. \ No newline at end of file From 7e0983a69a82c974e088168ec72bf6f61ea55c50 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 22:07:30 +0000 Subject: [PATCH 14/40] Adjusts file permissions to allow deploy to run --- deploy.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh old mode 100644 new mode 100755 From 92f1bdacbf444b31b27e0d284ed0c2010cbd7afa Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 22:29:11 +0000 Subject: [PATCH 15/40] Adds (ugly, ugly) favicon Need a better favicon, but alas, no ideas. What could it conceivably be? --- build.js | 4 +++- contents/favicon.ico | Bin 0 -> 411 bytes templates/layout.jade | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 contents/favicon.ico diff --git a/build.js b/build.js index d7a4585..a5ea597 100644 --- a/build.js +++ b/build.js @@ -35,7 +35,9 @@ var metalsmith = Metalsmith(__dirname); .use(sass()) ) - .use(fingerprint({pattern: ['style.css']})) + .use(fingerprint({ + pattern: ['style.css', 'favicon.ico'] + })) .use(branch('**/*.md') .use(markdown()) diff --git a/contents/favicon.ico b/contents/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..941858c83e01007c1bf24190eed3d0463b0737a9 GIT binary patch literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_Cwy$!fk$L90|Vb-5N14{zaj-BSXSVe4x|;pxc%3hxj@D`PZ!6Kh{JEE z9pr6L;Bh@_!E9|HbJ;@1dV`DYM3b#yM<%&lp2za=``73WMh3Cd5x$$P8<;H`m=hX= zjHk@lz0Nf+_WixLx;Oc(mrE$@fWG`%+@os7IHAWxLmxZY@ zPbbAihbOg}ZTC89%JjPM)-&H9^$oixZ?>Im&Hdfv@zsrTMGe_1D+^y*Tk&oF*Y&>d z*#_oYiF^icg=>y6vKKHEH!yE$%nqEqGW7z`<;qnd5hcO-X(i=}MX3x76}PxO&YaP{ m__>%jP{a6|@l|6J1_pyyENB04SGxk0GkCiCxvX Date: Fri, 6 Nov 2015 22:36:05 +0000 Subject: [PATCH 16/40] Installs google analytics --- templates/layout.jade | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/layout.jade b/templates/layout.jade index 23a148d..4a69e28 100644 --- a/templates/layout.jade +++ b/templates/layout.jade @@ -10,4 +10,11 @@ html(lang="en") link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Source+Code+Pro:700', type='text/css') meta(name='viewport', content='width=device-width, initial-scale=1.0') body - block contents \ No newline at end of file + block contents + script. + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q || []).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + ga('create', 'UA-29439846-1', 'auto'); + ga('send', 'pageview'); \ No newline at end of file From 46b8760f6129fe7c5698d4e20c6907321092e49c Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 23:19:22 +0000 Subject: [PATCH 17/40] cleans up code listing html/sass --- contents/style.scss | 38 ++++++++++++++++++++------------------ templates/index.jade | 7 +++---- templates/layout.jade | 4 +--- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/contents/style.scss b/contents/style.scss index 2a7a1af..4658303 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -52,38 +52,40 @@ code { padding: 25px 0px 10px 0px; } -.introduction { - // border-bottom: 4px solid #f9f9f9; -} - .codes { margin-bottom: 40px; - section { + ul { + font-family: 'Open Sans', sans-serif; + font-size: 14px; + letter-spacing: 0.5px; + list-style-type: none; margin-bottom: 10px; h2 { - font-weight: bold; - } - - h2, h3 { font-family: 'Open Sans', sans-serif; font-size: 14px; + font-weight: bold; letter-spacing: 0.5px; - margin-bottom: 2px; + margin-bottom: 0px; + } + + li { + margin-bottom: 0px; a { font-weight: normal; - } - a:hover { - color: #d6156d; - } + &:hover { + color: #d6156d; + } - a span { - color: #d6156d; - font-family: 'Source Code Pro'; - width: 34px; + span { + color: #d6156d; + font-family: 'Source Code Pro'; + font-weight: bold; + width: 34px; + } } } } diff --git a/templates/index.jade b/templates/index.jade index 094d728..301f615 100644 --- a/templates/index.jade +++ b/templates/index.jade @@ -3,10 +3,9 @@ extends layout.jade block contents .hero.introduction: .container: .row: .twelve.columns !{contents} - .container.codes + .container.codes: .row: .twelve.columns each group in groups.codes - section + ul h2 !{group.title} each code in group.items - article - h3 #[a(href='/#{code.code}') #[span !{code.code}] #{code.title}] \ No newline at end of file + li #[a(href='/#{code.code}') #[span !{code.code}] #{code.title}] \ No newline at end of file diff --git a/templates/layout.jade b/templates/layout.jade index 4a69e28..4fb0d03 100644 --- a/templates/layout.jade +++ b/templates/layout.jade @@ -1,10 +1,8 @@ -block title - title #{title} — httpstatus.es - doctype html html(lang="en") head block title + #{title} — httpstatus.es link(rel='shortcut icon', href='/' + fingerprint['favicon.ico'], type='image/x-icon') link(rel='stylesheet', href='/' + fingerprint['style.css']) link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Source+Code+Pro:700', type='text/css') From 615cb0ef43e16c280356db9165aca02279ec131b Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 23:29:42 +0000 Subject: [PATCH 18/40] Fixes missing title tag from layout --- templates/layout.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/layout.jade b/templates/layout.jade index 4fb0d03..ab1d036 100644 --- a/templates/layout.jade +++ b/templates/layout.jade @@ -2,7 +2,7 @@ doctype html html(lang="en") head block title - #{title} — httpstatus.es + title #{title} — httpstatus.es link(rel='shortcut icon', href='/' + fingerprint['favicon.ico'], type='image/x-icon') link(rel='stylesheet', href='/' + fingerprint['style.css']) link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Source+Code+Pro:700', type='text/css') From 6e3e0dd158e5ad2e4a45303642739a0405e14972 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 00:28:15 +0000 Subject: [PATCH 19/40] Adds 1xx Informational class codes using latest description from the standards --- contents/codes/100.md | 18 +++++++++++++++++- contents/codes/101.md | 17 ++++++++++++++++- contents/codes/102.md | 19 ++++++++++++++++++- 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/contents/codes/100.md b/contents/codes/100.md index 184f149..0aa541d 100644 --- a/contents/codes/100.md +++ b/contents/codes/100.md @@ -4,4 +4,20 @@ code: 100 title: Continue --- -This is the content of the 100 status code \ No newline at end of file +The 100 (Continue) status code indicates that the initial part of a request has +been received and has not yet been rejected by the server. The server intends to +send a final response after the request has been fully received and acted upon. + +When the request contains an Expect header field that includes a 100-continue +expectation, the 100 response indicates that the server wishes to receive the +request payload body, as described in +[RFC7231 Section 5.1.1][1]. The +client ought to continue sending the request and discard the 100 response. + +If the request did not contain an Expect header field containing the +100-continue expectation, the client can simply discard this interim response. + +Source: [RFC7231 Section 6.1.1][2] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/101.md b/contents/codes/101.md index 7f681d7..305973c 100644 --- a/contents/codes/101.md +++ b/contents/codes/101.md @@ -4,4 +4,19 @@ code: 101 title: Switching Protocols --- -This is the contents of the 101 status code \ No newline at end of file +The 101 (Switching Protocols) status code indicates that the server understands +and is willing to comply with the client's request, via the Upgrade header field +([Section 6.7 of [RFC7230]][1]), for a change in the application protocol being +used on this connection. The server MUST generate an Upgrade header field in the +response that indicates which protocol(s) will be switched to immediately after +the empty line that terminates the 101 response. + +It is assumed that the server will only agree to switch protocols when it is +advantageous to do so. For example, switching to a newer version of HTTP might +be advantageous over older versions, and switching to a real-time, synchronous +protocol might be advantageous when delivering resources that use such features. + +Source: [RFC7231 Section 6.2.2][2] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/102.md b/contents/codes/102.md index c882c8c..cbb2edc 100644 --- a/contents/codes/102.md +++ b/contents/codes/102.md @@ -4,4 +4,21 @@ code: 102 title: Processing --- -This is the contents of the 102 status code \ No newline at end of file +The 102 (Processing) status code is an interim response used to inform the +client that the server has accepted the complete request, but has not yet +completed it. This status code SHOULD only be sent when the server has a +reasonable expectation that the request will take significant time to complete. +As guidance, if a method is taking longer than 20 seconds (a reasonable, but +arbitrary value) to process the server SHOULD return a 102 (Processing) +response. The server MUST send a final response after the request has been +completed. + +Methods can potentially take a long period of time to process, especially +methods that support the Depth header. In such cases the client may time-out the +connection while waiting for a response. To prevent this the server may return a +102 (Processing) status code to indicate to the client that the server is still +processing the method. + +Source: [RFC2518 Section 10.1][1] + +[1]: \ No newline at end of file From 3d8dbc42af398bda2e86384bf5f343adfb2b1812 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 00:41:41 +0000 Subject: [PATCH 20/40] Adds Rails HTTP Status Symbols to 1xx Informational codes --- contents/codes/100.md | 2 ++ contents/codes/101.md | 2 ++ contents/codes/102.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/contents/codes/100.md b/contents/codes/100.md index 0aa541d..11542f8 100644 --- a/contents/codes/100.md +++ b/contents/codes/100.md @@ -2,6 +2,8 @@ set: 1 code: 100 title: Continue +references: + "Rails HTTP Status Symbol": ":continue" --- The 100 (Continue) status code indicates that the initial part of a request has diff --git a/contents/codes/101.md b/contents/codes/101.md index 305973c..111d13e 100644 --- a/contents/codes/101.md +++ b/contents/codes/101.md @@ -2,6 +2,8 @@ set: 1 code: 101 title: Switching Protocols +references: + "Rails HTTP Status Symbol": ":switching_protocols" --- The 101 (Switching Protocols) status code indicates that the server understands diff --git a/contents/codes/102.md b/contents/codes/102.md index cbb2edc..c360a8c 100644 --- a/contents/codes/102.md +++ b/contents/codes/102.md @@ -2,6 +2,8 @@ set: 1 code: 102 title: Processing +references: + "Rails HTTP Status Symbol": ":processing" --- The 102 (Processing) status code is an interim response used to inform the From ebc0fb8a8a2f6daa5ac8fcf2296679500b451536 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 00:42:48 +0000 Subject: [PATCH 21/40] Removes erroneous brackets from 101 --- contents/codes/101.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/codes/101.md b/contents/codes/101.md index 111d13e..1c4f134 100644 --- a/contents/codes/101.md +++ b/contents/codes/101.md @@ -8,7 +8,7 @@ references: The 101 (Switching Protocols) status code indicates that the server understands and is willing to comply with the client's request, via the Upgrade header field -([Section 6.7 of [RFC7230]][1]), for a change in the application protocol being +([Section 6.7 of RFC7230][1]), for a change in the application protocol being used on this connection. The server MUST generate an Upgrade header field in the response that indicates which protocol(s) will be switched to immediately after the empty line that terminates the 101 response. From 5c9aa2e2e8255ee867b33e5f159fc09e754189ef Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 01:41:41 +0000 Subject: [PATCH 22/40] Adds 2xx Success class codes using latest descriptions from standards --- contents/codes/200.md | 33 +++++++++++++- contents/codes/201.md | 17 ++++++- contents/codes/202.md | 20 +++++++- contents/codes/203.md | 28 +++++++++++- contents/codes/204.md | 38 ++++++++++++++- contents/codes/205.md | 26 ++++++++++- contents/codes/206.md | 104 +++++++++++++++++++++++++++++++++++++++++- contents/codes/207.md | 41 ++++++++++++++++- contents/codes/208.md | 29 +++++++++++- contents/codes/226.md | 30 +++++++++++- 10 files changed, 355 insertions(+), 11 deletions(-) diff --git a/contents/codes/200.md b/contents/codes/200.md index 5c6bcfe..0248bd4 100644 --- a/contents/codes/200.md +++ b/contents/codes/200.md @@ -2,6 +2,37 @@ set: 2 code: 200 title: OK +references: + "Rails HTTP Status Symbol": ":not_found" --- -This is the contents of the 200 status code \ No newline at end of file +The 200 (OK) status code indicates that the request has succeeded. The payload +sent in a 200 response depends on the request method. For the methods defined by +this specification, the intended meaning of the payload can be summarized as: + +GET a representation of the target resource + +HEAD the same representation as GET, but without the representation data + +POST a representation of the status of, or results obtained from, the action; + +PUT, DELETE a representation of the status of the action; + +OPTIONS a representation of the communications options; + +TRACE a representation of the request message as received by the end server. + +Aside from responses to CONNECT, a 200 response always has a payload, though an +origin server MAY generate a payload body of zero length. If no payload is +desired, an origin server ought to send [204 (No Content)](/204) instead. For +CONNECT, no payload is allowed because the successful result is a tunnel, which +begins immediately after the 200 response header section. + +A 200 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][1]). + +Source: [RFC7231 Section 6.3.1][2] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/201.md b/contents/codes/201.md index 59b297b..707f0d0 100644 --- a/contents/codes/201.md +++ b/contents/codes/201.md @@ -2,6 +2,21 @@ set: 2 code: 201 title: Created +references: + "Rails HTTP Status Symbol": ":created" --- -This is the contents of the 201 status code \ No newline at end of file +The 201 (Created) status code indicates that the request has been fulfilled and +has resulted in one or more new resources being created. The primary resource +created by the request is identified by either a Location header field in the +response or, if no Location field is received, by the effective request URI. + +The 201 response payload typically describes and links to the resource(s) +created. See [Section 7.2 of RFC7231][1] for a discussion of the meaning and +purpose of validator header fields, such as ETag and Last-Modified, in a 201 +response. + +Source: [RFC7231 Section 6.3.2][2] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/202.md b/contents/codes/202.md index b3f47d5..855698f 100644 --- a/contents/codes/202.md +++ b/contents/codes/202.md @@ -2,6 +2,24 @@ set: 2 code: 202 title: Accepted +references: + "Rails HTTP Status Symbol": ":accepted: --- -This is the contents of the 202 status code \ No newline at end of file +The 202 (Accepted) status code indicates that the request has been accepted for +processing, but the processing has not been completed. The request might or +might not eventually be acted upon, as it might be disallowed when processing +actually takes place. There is no facility in HTTP for re-sending a status code +from an asynchronous operation. + +The 202 response is intentionally noncommittal. Its purpose is to allow a server +to accept a request for some other process (perhaps a batch-oriented process +that is only run once per day) without requiring that the user agent's +connection to the server persist until the process is completed. The +representation sent with this response ought to describe the request's current +status and point to (or embed) a status monitor that can provide the user with +an estimate of when the request will be fulfilled. + +Source: [RFC7231 Section 6.3.3][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/203.md b/contents/codes/203.md index 06a6c91..fc4e3c1 100644 --- a/contents/codes/203.md +++ b/contents/codes/203.md @@ -1,7 +1,31 @@ --- set: 2 code: 203 -title: Non-authorative Information +title: Non-authoritative Information +references: + "Rails HTTP Status Symbol": ":non_authoritative_information" --- -This is the contents of the 203 status code \ No newline at end of file +The 203 (Non-Authoritative Information) status code indicates that the request +was successful but the enclosed payload has been modified from that of the +origin server's [200 (OK)](/200) response by a transforming proxy +([Section 5.7.2 of RFC7230][1]). This status code allows the proxy to notify +recipients when a transformation has been applied, since that knowledge might +impact later decisions regarding the content. For example, future cache +validation requests for the content might only be applicable along the same +request path (through the same proxies). + +The 203 response is similar to the Warning code of 214 Transformation Applied +([Section 5.5 of RFC7234][2]), which has the advantage of being applicable to +responses with any status code. + +A 203 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][3]). + +Source: [RFC7231 Section 6.3.4][4] + +[1]: +[2]: +[3]: +[4]: \ No newline at end of file diff --git a/contents/codes/204.md b/contents/codes/204.md index 0100290..798cf6e 100644 --- a/contents/codes/204.md +++ b/contents/codes/204.md @@ -2,6 +2,42 @@ set: 2 code: 204 title: No Content +references: + "Rails HTTP Status Symbol": ":no_content" --- -This is the contents of the 204s status code \ No newline at end of file +The 204 (No Content) status code indicates that the server has successfully +fulfilled the request and that there is no additional content to send in the +response payload body. Metadata in the response header fields refer to the +target resource and its selected representation after the requested action was +applied. + +For example, if a 204 status code is received in response to a PUT request and +the response contains an ETag header field, then the PUT was successful and the +ETag field-value contains the entity-tag for the new representation of that +target resource. + +The 204 response allows a server to indicate that the action has been +successfully applied to the target resource, while implying that the user agent +does not need to traverse away from its current "document view" (if any). The +server assumes that the user agent will provide some indication of the success +to its user, in accord with its own interface, and apply any new or updated +metadata in the response to its active representation. + +For example, a 204 status code is commonly used with document editing interfaces +corresponding to a "save" action, such that the document being saved remains +available to the user for editing. It is also frequently used with interfaces +that expect automated data transfers to be prevalent, such as within distributed +version control systems. + +A 204 response is terminated by the first empty line after the header fields +because it cannot contain a message body. + +A 204 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][1]). + +Source: [RFC7231 Section 6.3.5][2] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/205.md b/contents/codes/205.md index 861e5f0..c5feb78 100644 --- a/contents/codes/205.md +++ b/contents/codes/205.md @@ -2,6 +2,30 @@ set: 2 code: 205 title: Reset Content +references: + "Rails HTTP Status Symbol": ":reset_content" --- -This is the contents of the 205 status code \ No newline at end of file +The 205 (Reset Content) status code indicates that the server has fulfilled the +request and desires that the user agent reset the "document view", which caused +the request to be sent, to its original state as received from the origin +server. + +This response is intended to support a common data entry use case where the user +receives content that supports data entry (a form, notepad, canvas, etc.), +enters or manipulates data in that space, causes the entered data to be +submitted in a request, and then the data entry mechanism is reset for the next +entry so that the user can easily initiate another input action. + +Since the 205 status code implies that no additional content will be provided, a +server MUST NOT generate a payload in a 205 response. In other words, a server +MUST do one of the following for a 205 response: a) indicate a zero-length body +for the response by including a Content-Length header field with a value of 0; +b) indicate a zero-length payload for the response by including a +Transfer-Encoding header field with a value of chunked and a message body +consisting of a single chunk of zero-length; or, c) close the connection +immediately after sending the blank line terminating the header section. + +Source: [RFC7231 Section 6.3.6][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/206.md b/contents/codes/206.md index fa728a8..35efb23 100644 --- a/contents/codes/206.md +++ b/contents/codes/206.md @@ -4,4 +4,106 @@ code: 206 title: Partial Content --- -This is the contents of the 206 status code \ No newline at end of file +The 206 (Partial Content) status code indicates that the server is successfully +fulfilling a range request for the target resource by transferring one or more +parts of the selected representation that correspond to the satisfiable ranges +found in the request's Range header field (see [RFC7233 Section 3.1][1]). + +If a single part is being transferred, the server generating the 206 response +MUST generate a Content-Range header field, describing what range of the +selected representation is enclosed, and a payload consisting of the range. For +example: + +``` +HTTP/1.1 206 Partial Content +Date: Wed, 15 Nov 1995 06:25:24 GMT +Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT +Content-Range: bytes 21010-47021/47022 +Content-Length: 26012 +Content-Type: image/gif + +... 26012 bytes of partial image data ... +``` + +If multiple parts are being transferred, the server generating the 206 response +MUST generate a "multipart/byteranges" payload, as defined in +[RFC7233 Appendix A][2], and a Content-Type header field containing the +multipart/byteranges media type and its required boundary parameter. To avoid +confusion with single-part responses, a server MUST NOT generate a Content-Range +header field in the HTTP header section of a multiple part response (this field +will be sent in each part instead). + +Within the header area of each body part in the multipart payload, the server +MUST generate a Content-Range header field corresponding to the range being +enclosed in that body part. If the selected representation would have had a +Content-Type header field in a [200 (OK)](/200) response, the server SHOULD +generate that same Content-Type field in the header area of each body part. +For example: + +``` +HTTP/1.1 206 Partial Content +Date: Wed, 15 Nov 1995 06:25:24 GMT +Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT +Content-Length: 1741 +Content-Type: multipart/byteranges; boundary=THIS_STRING_SEPARATES + +--THIS_STRING_SEPARATES +Content-Type: application/pdf +Content-Range: bytes 500-999/8000 + +...the first range... +--THIS_STRING_SEPARATES +Content-Type: application/pdf +Content-Range: bytes 7000-7999/8000 + +...the second range +--THIS_STRING_SEPARATES-- +``` + +When multiple ranges are requested, a server MAY coalesce any of the ranges that +overlap, or that are separated by a gap that is smaller than the overhead of +sending multiple parts, regardless of the order in which the corresponding +byte-range-spec appeared in the received Range header field. Since the typical +overhead between parts of a multipart/byteranges payload is around 80 bytes, +depending on the selected representation's media type and the chosen boundary +parameter length, it can be less efficient to transfer many small disjoint parts +than it is to transfer the entire selected representation. + +A server MUST NOT generate a multipart response to a request for a single range, +since a client that does not request multiple parts might not support multipart +responses. However, a server MAY generate a multipart/byteranges payload with +only a single body part if multiple ranges were requested and only one range was +found to be satisfiable or only one range remained after coalescing. A client +that cannot process a multipart/byteranges response MUST NOT generate a request +that asks for multiple ranges. + +When a multipart response payload is generated, the server SHOULD send the parts +in the same order that the corresponding byte-range-spec appeared in the +received Range header field, excluding those ranges that were deemed +unsatisfiable or that were coalesced into other ranges. A client that receives a +multipart response MUST inspect the Content-Range header field present in each +body part in order to determine which range is contained in that body part; a +client cannot rely on receiving the same ranges that it requested, nor the same +order that it requested. + +When a 206 response is generated, the server MUST generate the following header +fields, in addition to those required above, if the field would have been sent +in a [200 (OK)](/200) response to the same request: Date, Cache-Control, ETag, +Expires, Content-Location, and Vary. + +If a 206 is generated in response to a request with an If-Range header field, +the sender SHOULD NOT generate other representation header fields beyond those +required above, because the client is understood to already have a prior +response containing those header fields. Otherwise, the sender MUST generate all +of the representation header fields that would have been sent in a +[200 (OK)](/200) response to the same request. + +A 206 response is cacheable by default; i.e., unless otherwise indicated by +explicit cache controls (see [Section 4.2.2 of RFC7234][3]). + +Source: [RFC7233 Section 4.1][4] + +[1]: +[2]: +[3]: +[4]: \ No newline at end of file diff --git a/contents/codes/207.md b/contents/codes/207.md index e3d1ce1..9655f30 100644 --- a/contents/codes/207.md +++ b/contents/codes/207.md @@ -2,6 +2,45 @@ set: 2 code: 207 title: Multi-Status +references: + "Rails HTTP Status Symbol": ":multi_status" --- -This is the contents of the 207 status code \ No newline at end of file +A Multi-Status response conveys information about multiple resources in +situations where multiple status codes might be appropriate. The default +Multi-Status response body is a text/xml or application/xml HTTP entity with a +'multistatus' root element. Further elements contain 200, 300, 400, and 500 +series status codes generated during the method invocation. 100 series status +codes SHOULD NOT be recorded in a 'response' XML element. + +Although '207' is used as the overall response status code, the recipient needs +to consult the contents of the multistatus response body for further information +about the success or failure of the method execution. The response MAY be used +in success, partial success and also in failure situations. + +The 'multistatus' root element holds zero or more 'response' elements in any +order, each with information about an individual resource. Each 'response' +element MUST have an 'href' element to identify the resource. + +A Multi-Status response uses one out of two distinct formats for representing +the status: + +1\. A 'status' element as child of the 'response' element indicates the status +of the message execution for the identified resource as a whole (for instance, +see [RFC4918 Section 9.6.2][1]). Some method definitions provide information +about specific status codes clients should be prepared to see in a response. +However, clients MUST be able to handle other status codes, using the generic +rules defined in [Section 10 of RFC2616][2]. + +2\. For PROPFIND and PROPPATCH, the format has been extended using the 'propstat' +element instead of 'status', providing information about individual properties +of a resource. This format is specific to PROPFIND and PROPPATCH, and is +described in detail in [RFC4918 Sections 9.1][3] and [RFC4918 9.2][4]. + +Source: [RFC4918 Section 13][5] + +[1]: +[2]: +[3]: +[4]: +[5]: diff --git a/contents/codes/208.md b/contents/codes/208.md index 9ecdaec..9965265 100644 --- a/contents/codes/208.md +++ b/contents/codes/208.md @@ -4,4 +4,31 @@ code: 208 title: Already Reported --- -This is the contents of the 208 status code \ No newline at end of file +The 208 (Already Reported) status code can be used inside a DAV: propstat +response element to avoid enumerating the internal members of multiple bindings +to the same collection repeatedly. For each binding to a collection inside the +request's scope, only one will be reported with a 200 status, while subsequent +DAV:response elements for all other bindings will use the 208 status, and no +DAV:response elements for their descendants are included. + +Note that the 208 status will only occur for "Depth: infinity" requests, and +that it is of particular importance when the multiple collection bindings cause +a bind loop as discussed in [RFC5842 Section 2.2][1]. + +A client can request the DAV:resource-id property in a PROPFIND request to +guarantee that they can accurately reconstruct the binding structure of a +collection with multiple bindings to a single resource. + +For backward compatibility with clients not aware of the 208 status code +appearing in multistatus response bodies, it SHOULD NOT be used unless the +client has signaled support for this specification using the "DAV" request +header (see [RFC5842 Section 8.2][2]). Instead, a 508 status should be +returned when a binding loop is discovered. This allows the server to return the +508 as the top-level return status, if it discovers it before it started the +response, or in the middle of a multistatus, if it discovers it in the middle of +streaming out a multistatus response. + +Source: [RFC5842 Section 7.1](http://tools.ietf.org/html/rfc5842#section-7.1) + +[1]: +[2]: diff --git a/contents/codes/226.md b/contents/codes/226.md index 998d17b..49b8fcc 100644 --- a/contents/codes/226.md +++ b/contents/codes/226.md @@ -2,6 +2,34 @@ set: 2 code: 226 title: IM Used +references: + "Rails HTTP Status Symbol": ":im_used" --- -This is the contents of the 226 status code \ No newline at end of file +The server has fulfilled a GET request for the resource, and the response is a +representation of the result of one or more instance-manipulations applied to +the current instance. The actual current instance might not be available except +by combining this response with other previous or future responses, as +appropriate for the specific instance-manipulation(s). If so, the headers of the +resulting instance are the result of combining the headers from the status-226 +response and the other instances, following the rules in [section 13.5.3][1] of +the HTTP/1.1 specification [10]. + +The request MUST have included an A-IM header field listing at least +one instance-manipulation. The response MUST include an Etag header +field giving the entity tag of the current instance. + +A response received with a status code of 226 MAY be stored by a +cache and used in reply to a subsequent request, subject to the HTTP +expiration mechanism and any Cache-Control headers, and to the +requirements in [section 10.6][2]. + +A response received with a status code of 226 MAY be used by a cache, +in conjunction with a cache entry for the base instance, to create a +cache entry for the current instance. + +Source: [RFC3229 Section 10.4.1][3] + +[1]: +[2]: +[3]: From ed94ac196663e063926e4376574a20264360a639 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 02:57:14 +0000 Subject: [PATCH 23/40] Adds 3xx Redirection class status code descriptions from the latest standards --- contents/codes/300.md | 45 ++++++++++++++++++++++++++++++++++++++++++- contents/codes/301.md | 27 ++++++++++++++++++++++++-- contents/codes/302.md | 20 ++++++++++++++++++- contents/codes/303.md | 34 +++++++++++++++++++++++++++++++- contents/codes/304.md | 35 ++++++++++++++++++++++++++++++++- contents/codes/305.md | 11 ++++++++++- contents/codes/307.md | 23 +++++++++++++++++++++- contents/codes/308.md | 28 ++++++++++++++++++++++++++- 8 files changed, 214 insertions(+), 9 deletions(-) diff --git a/contents/codes/300.md b/contents/codes/300.md index 279664f..ad02d96 100644 --- a/contents/codes/300.md +++ b/contents/codes/300.md @@ -2,6 +2,49 @@ set: 3 code: 300 title: Multiple Choices +references: + "Rails HTTP Status Symbol": ":multiple_choices" --- -This is the contents of the 300 status code \ No newline at end of file + +The 300 (Multiple Choices) status code indicates that the target resource has +more than one representation, each with its own more specific identifier, and +information about the alternatives is being provided so that the user (or user +agent) can select a preferred representation by redirecting its request to one +or more of those identifiers. In other words, the server desires that the user +agent engage in reactive negotiation to select the most appropriate +representation(s) for its needs ([RFC7231 Section 3.4][1]). + +If the server has a preferred choice, the server SHOULD generate a Location +header field containing a preferred choice's URI reference. The user agent MAY +use the Location field value for automatic redirection. + +For request methods other than HEAD, the server SHOULD generate a payload in the +300 response containing a list of representation metadata and URI reference(s) +from which the user or user agent can choose the one most preferred. The user +agent MAY make a selection from that list automatically if it understands the +provided media type. A specific format for automatic selection is not defined by +this specification because HTTP tries to remain orthogonal to the definition of +its payloads. In practice, the representation is provided in some easily parsed +format believed to be acceptable to the user agent, as determined by shared +design or content negotiation, or in some commonly accepted hypertext format. + +A 300 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls (see +[Section 4.2.2 of RFC7234][2]). + +Note: The original proposal for the 300 status code defined the URI header field +as providing a list of alternative representations, such that it would be usable +for 200, 300, and 406 responses and be transferred in responses to the HEAD +method. However, lack of deployment and disagreement over syntax led to both URI +and Alternates (a subsequent proposal) being dropped from this specification. It +is possible to communicate the list using a set of Link header fields +[[RFC5988][3]], each with a relationship of "alternate", though deployment is a +chicken-and-egg problem. + +Source: [RFC7231 Section 6.4.1][4] + +[1]: +[2]: +[3]: +[4]: \ No newline at end of file diff --git a/contents/codes/301.md b/contents/codes/301.md index a6de1ce..42c3831 100644 --- a/contents/codes/301.md +++ b/contents/codes/301.md @@ -2,7 +2,30 @@ set: 3 code: 301 title: Moved Permanently -summary: this and all future requests directed to the given URI +references: + "Rails HTTP Status Symbol": ":moved_permanently" --- -This is the contents of the 301 status code \ No newline at end of file +The 301 (Moved Permanently) status code indicates that the target resource has +been assigned a new permanent URI and any future references to this resource +ought to use one of the enclosed URIs. Clients with link-editing capabilities +ought to automatically re-link references to the effective request URI to one or +more of the new references sent by the server, where possible. + +The server SHOULD generate a Location header field in the response containing a +preferred URI reference for the new permanent URI. The user agent MAY use the +Location field value for automatic redirection. The server's response payload +usually contains a short hypertext note with a hyperlink to the new URI(s). + +Note: For historical reasons, a user agent MAY change the request method from +POST to GET for the subsequent request. If this behavior is undesired, the +[307 (Temporary Redirect)](/307) status code can be used instead. + +A 301 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of [RFC7234]][1]). + +Source: [RFC7231 Section 6.4.2][2] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/302.md b/contents/codes/302.md index 766841b..6a79cd3 100644 --- a/contents/codes/302.md +++ b/contents/codes/302.md @@ -2,6 +2,24 @@ set: 3 code: 302 title: Found +references: + "Rails HTTP Status Symbol": ":found" --- -This is the contents of the 300 status code \ No newline at end of file +The 302 (Found) status code indicates that the target resource resides +temporarily under a different URI. Since the redirection might be altered on +occasion, the client ought to continue to use the effective request URI for +future requests. + +The server SHOULD generate a Location header field in the response containing a +URI reference for the different URI. The user agent MAY use the Location field +value for automatic redirection. The server's response payload usually contains +a short hypertext note with a hyperlink to the different URI(s). + +Note: For historical reasons, a user agent MAY change the request method from +POST to GET for the subsequent request. If this behavior is undesired, the +[307 (Temporary Redirect)](/307) status code can be used instead. + +Source: [RFC7231 Section 6.4.3][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/303.md b/contents/codes/303.md index 27db99b..0d6dd21 100644 --- a/contents/codes/303.md +++ b/contents/codes/303.md @@ -2,6 +2,38 @@ set: 3 code: 303 title: See Other +references: + "Rails HTTP Status Symbol": ":see_other" --- -This is the contents of the 201 status code \ No newline at end of file +The 303 (See Other) status code indicates that the server is redirecting the +user agent to a different resource, as indicated by a URI in the Location header +field, which is intended to provide an indirect response to the original +request. A user agent can perform a retrieval request targeting that URI (a GET +or HEAD request if using HTTP), which might also be redirected, and present the +eventual result as an answer to the original request. Note that the new URI in +the Location header field is not considered equivalent to the effective request +URI. + +This status code is applicable to any HTTP method. It is primarily used to allow +the output of a POST action to redirect the user agent to a selected resource, +since doing so provides the information corresponding to the POST response in a +form that can be separately identified, bookmarked, and cached, independent of +the original request. + +A 303 response to a GET request indicates that the origin server does not have a +representation of the target resource that can be transferred by the server over +HTTP. However, the Location field value refers to a resource that is descriptive +of the target resource, such that making a retrieval request on that other +resource might result in a representation that is useful to recipients without +implying that it represents the original target resource. Note that answers to +the questions of what can be represented, what representations are adequate, and +what might be a useful description are outside the scope of HTTP. + +Except for responses to a HEAD request, the representation of a 303 response +ought to contain a short hypertext note with a hyperlink to the same URI +reference provided in the Location header field. + +Source: [RFC7321 Section 6.4.4][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/304.md b/contents/codes/304.md index 5cb7f7b..eeb575a 100644 --- a/contents/codes/304.md +++ b/contents/codes/304.md @@ -2,6 +2,39 @@ set: 3 code: 304 title: Not Modified +references: + "Rails HTTP Status Symbol": ":not_modified" --- -This is the contents of the 304 status code +The 304 (Not Modified) status code indicates that a conditional GET or HEAD +request has been received and would have resulted in a [200 (OK)](/200) response +if it were not for the fact that the condition evaluated to false. In other +words, there is no need for the server to transfer a representation of the +target resource because the request indicates that the client, which made the +request conditional, already has a valid representation; the server is therefore +redirecting the client to make use of that stored representation as if it were +the payload of a [200 (OK)](/200) response. + +The server generating a 304 response MUST generate any of the following header +fields that would have been sent in a [200 (OK)](/200) response to the same +request: Cache-Control, Content-Location, Date, ETag, Expires, and Vary. + +Since the goal of a 304 response is to minimize information transfer when the +recipient already has one or more cached representations, a sender SHOULD NOT +generate representation metadata other than the above listed fields unless said +metadata exists for the purpose of guiding cache updates (e.g., Last-Modified +might be useful if the response does not have an ETag field). + +Requirements on a cache that receives a 304 response are defined in +[Section 4.3.4 of RFC7234][2]. If the conditional request originated with an +outbound client, such as a user agent with its own cache sending a conditional +GET to a shared proxy, then the proxy SHOULD forward the 304 response to that +client. + +A 304 response cannot contain a message-body; it is always terminated by the +first empty line after the header fields. + +Source: [RFC7232 Section 4.1][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/305.md b/contents/codes/305.md index d638ff4..45bd2fb 100644 --- a/contents/codes/305.md +++ b/contents/codes/305.md @@ -2,6 +2,15 @@ set: 3 code: 305 title: Use Proxy +#references: +# "Rails HTTP Status Symbol": "use_proxy" +# - Due to deprecation we won't show this... but should we? --- -This is the contents of the 305 status code +The 305 (Use Proxy) status code was defined in a previous version of this +specification and is now deprecated, due to security concerns regarding in-band +configuration of a proxy. + +Source: [RFC7231 Section 6.4.5][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/307.md b/contents/codes/307.md index 6ae18d3..d2c5a2a 100644 --- a/contents/codes/307.md +++ b/contents/codes/307.md @@ -2,6 +2,27 @@ set: 3 code: 307 title: Temporary Redirect +references: + "Rails HTTP Status Symbol": ":temporary_redirect" --- -This is the contents of the 307 status code +The 307 (Temporary Redirect) status code indicates that the target resource +resides temporarily under a different URI and the user agent MUST NOT change the +request method if it performs an automatic redirection to that URI. Since the +redirection can change over time, the client ought to continue using the +original effective request URI for future requests. + +The server SHOULD generate a Location header field in the response containing a +URI reference for the different URI. The user agent MAY use the Location field +value for automatic redirection. The server's response payload usually contains +a short hypertext note with a hyperlink to the different URI(s). + +Note: This status code is similar to 302 (Found), except that it does not allow +changing the request method from POST to GET. This specification defines no +equivalent counterpart for [301 (Moved Permanently)](/301) ([RFC7238][2], however, +defines the status code [308 (Permanent Redirect)](/308) for this purpose). + +Source: [RFC7231 Section 6.4.7][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/308.md b/contents/codes/308.md index d7a16ea..d6aa6db 100644 --- a/contents/codes/308.md +++ b/contents/codes/308.md @@ -4,4 +4,30 @@ code: 308 title: Permanent Redirect --- -This is the contents of the 308 status code +The 308 (Permanent Redirect) status code indicates that the target resource has +been assigned a new permanent URI and any future references to this resource +ought to use one of the enclosed URIs. Clients with link editing capabilities +ought to automatically re-link references to the effective request URI +([Section 5.5 of RFC7230][2]) to one or more of the new references sent by the +server, where possible. + +The server SHOULD generate a Location header field +([[RFC7231], Section 7.1.2][3]) in the response containing a preferred URI +reference for the new permanent URI. The user agent MAY use the Location field +value for automatic redirection. The server's response payload usually contains +a short hypertext note with a hyperlink to the new URI(s). + +A 308 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls ([see RFC7234, Section 4.2.2][4]). + +Note: This status code is similar to 301 (Moved Permanently) +([RFC7231, Section 6.4.2][5]), except that it does not allow changing the +request method from POST to GET. + +Source: [RFC738 Section 3][1] + +[1]: +[2]: +[3]: +[4]: +[5]: \ No newline at end of file From 6b66663d0425c59b69777f3b096fe5ac89230a01 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 02:59:14 +0000 Subject: [PATCH 24/40] fixes 1xx code source reference numbering For the sake of consistency and future proofing (there may be a scenario in future where we need to access the source URL for each status code programmatically) it makes sense to have them consistently numbered. The source document will always be reference link ID 1. --- contents/codes/100.md | 8 ++++---- contents/codes/101.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contents/codes/100.md b/contents/codes/100.md index 11542f8..90bd210 100644 --- a/contents/codes/100.md +++ b/contents/codes/100.md @@ -13,13 +13,13 @@ send a final response after the request has been fully received and acted upon. When the request contains an Expect header field that includes a 100-continue expectation, the 100 response indicates that the server wishes to receive the request payload body, as described in -[RFC7231 Section 5.1.1][1]. The +[RFC7231 Section 5.1.1][2]. The client ought to continue sending the request and discard the 100 response. If the request did not contain an Expect header field containing the 100-continue expectation, the client can simply discard this interim response. -Source: [RFC7231 Section 6.1.1][2] +Source: [RFC7231 Section 6.1.1][1] -[1]: -[2]: \ No newline at end of file +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/101.md b/contents/codes/101.md index 1c4f134..9eadf4d 100644 --- a/contents/codes/101.md +++ b/contents/codes/101.md @@ -8,7 +8,7 @@ references: The 101 (Switching Protocols) status code indicates that the server understands and is willing to comply with the client's request, via the Upgrade header field -([Section 6.7 of RFC7230][1]), for a change in the application protocol being +([Section 6.7 of RFC7230][2]), for a change in the application protocol being used on this connection. The server MUST generate an Upgrade header field in the response that indicates which protocol(s) will be switched to immediately after the empty line that terminates the 101 response. @@ -18,7 +18,7 @@ advantageous to do so. For example, switching to a newer version of HTTP might be advantageous over older versions, and switching to a real-time, synchronous protocol might be advantageous when delivering resources that use such features. -Source: [RFC7231 Section 6.2.2][2] +Source: [RFC7231 Section 6.2.2][1] -[1]: -[2]: \ No newline at end of file +[1]: +[2]: From 63a1095be665eb9fce2e3d5df2ede4d9002d559f Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 03:03:35 +0000 Subject: [PATCH 25/40] fixed 2xx code source reference numbering --- contents/codes/101.md | 2 +- contents/codes/200.md | 8 ++++---- contents/codes/201.md | 8 ++++---- contents/codes/203.md | 16 ++++++++-------- contents/codes/204.md | 8 ++++---- contents/codes/206.md | 16 ++++++++-------- contents/codes/207.md | 18 +++++++++--------- contents/codes/208.md | 11 ++++++----- contents/codes/226.md | 12 ++++++------ 9 files changed, 50 insertions(+), 49 deletions(-) diff --git a/contents/codes/101.md b/contents/codes/101.md index 9eadf4d..dec8010 100644 --- a/contents/codes/101.md +++ b/contents/codes/101.md @@ -21,4 +21,4 @@ protocol might be advantageous when delivering resources that use such features. Source: [RFC7231 Section 6.2.2][1] [1]: -[2]: +[2]: \ No newline at end of file diff --git a/contents/codes/200.md b/contents/codes/200.md index 0248bd4..92fb870 100644 --- a/contents/codes/200.md +++ b/contents/codes/200.md @@ -30,9 +30,9 @@ begins immediately after the 200 response header section. A 200 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls -(see [Section 4.2.2 of RFC7234][1]). +(see [Section 4.2.2 of RFC7234][2]). -Source: [RFC7231 Section 6.3.1][2] +Source: [RFC7231 Section 6.3.1][1] -[1]: -[2]: \ No newline at end of file +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/201.md b/contents/codes/201.md index 707f0d0..121af8e 100644 --- a/contents/codes/201.md +++ b/contents/codes/201.md @@ -12,11 +12,11 @@ created by the request is identified by either a Location header field in the response or, if no Location field is received, by the effective request URI. The 201 response payload typically describes and links to the resource(s) -created. See [Section 7.2 of RFC7231][1] for a discussion of the meaning and +created. See [Section 7.2 of RFC7231][2] for a discussion of the meaning and purpose of validator header fields, such as ETag and Last-Modified, in a 201 response. -Source: [RFC7231 Section 6.3.2][2] +Source: [RFC7231 Section 6.3.2][1] -[1]: -[2]: \ No newline at end of file +[1]: +[2]: -[2]: -[3]: -[4]: \ No newline at end of file +[1]: +[2]: +[3]: +[4]: \ No newline at end of file diff --git a/contents/codes/204.md b/contents/codes/204.md index 798cf6e..f10e479 100644 --- a/contents/codes/204.md +++ b/contents/codes/204.md @@ -35,9 +35,9 @@ because it cannot contain a message body. A 204 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls -(see [Section 4.2.2 of RFC7234][1]). +(see [Section 4.2.2 of RFC7234][2]). -Source: [RFC7231 Section 6.3.5][2] +Source: [RFC7231 Section 6.3.5][1] -[1]: -[2]: \ No newline at end of file +[2]: +[1]: \ No newline at end of file diff --git a/contents/codes/206.md b/contents/codes/206.md index 35efb23..3869266 100644 --- a/contents/codes/206.md +++ b/contents/codes/206.md @@ -7,7 +7,7 @@ title: Partial Content The 206 (Partial Content) status code indicates that the server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges -found in the request's Range header field (see [RFC7233 Section 3.1][1]). +found in the request's Range header field (see [RFC7233 Section 3.1][2]). If a single part is being transferred, the server generating the 206 response MUST generate a Content-Range header field, describing what range of the @@ -27,7 +27,7 @@ Content-Type: image/gif If multiple parts are being transferred, the server generating the 206 response MUST generate a "multipart/byteranges" payload, as defined in -[RFC7233 Appendix A][2], and a Content-Type header field containing the +[RFC7233 Appendix A][3], and a Content-Type header field containing the multipart/byteranges media type and its required boundary parameter. To avoid confusion with single-part responses, a server MUST NOT generate a Content-Range header field in the HTTP header section of a multiple part response (this field @@ -99,11 +99,11 @@ of the representation header fields that would have been sent in a [200 (OK)](/200) response to the same request. A 206 response is cacheable by default; i.e., unless otherwise indicated by -explicit cache controls (see [Section 4.2.2 of RFC7234][3]). +explicit cache controls (see [Section 4.2.2 of RFC7234][4]). -Source: [RFC7233 Section 4.1][4] +Source: [RFC7233 Section 4.1][1] -[1]: -[2]: -[3]: -[4]: \ No newline at end of file +[1]: +[2]: +[3]: +[4]: diff --git a/contents/codes/207.md b/contents/codes/207.md index 9655f30..3c3504f 100644 --- a/contents/codes/207.md +++ b/contents/codes/207.md @@ -27,20 +27,20 @@ the status: 1\. A 'status' element as child of the 'response' element indicates the status of the message execution for the identified resource as a whole (for instance, -see [RFC4918 Section 9.6.2][1]). Some method definitions provide information +see [RFC4918 Section 9.6.2][2]). Some method definitions provide information about specific status codes clients should be prepared to see in a response. However, clients MUST be able to handle other status codes, using the generic -rules defined in [Section 10 of RFC2616][2]. +rules defined in [Section 10 of RFC2616][3]. 2\. For PROPFIND and PROPPATCH, the format has been extended using the 'propstat' element instead of 'status', providing information about individual properties of a resource. This format is specific to PROPFIND and PROPPATCH, and is -described in detail in [RFC4918 Sections 9.1][3] and [RFC4918 9.2][4]. +described in detail in [RFC4918 Sections 9.1][4] and [RFC4918 9.2][5]. -Source: [RFC4918 Section 13][5] +Source: [RFC4918 Section 13][1] -[1]: -[2]: -[3]: -[4]: -[5]: +[1]: +[2]: +[3]: +[4]: +[5]: diff --git a/contents/codes/208.md b/contents/codes/208.md index 9965265..903d6f6 100644 --- a/contents/codes/208.md +++ b/contents/codes/208.md @@ -13,7 +13,7 @@ DAV:response elements for their descendants are included. Note that the 208 status will only occur for "Depth: infinity" requests, and that it is of particular importance when the multiple collection bindings cause -a bind loop as discussed in [RFC5842 Section 2.2][1]. +a bind loop as discussed in [RFC5842 Section 2.2][2]. A client can request the DAV:resource-id property in a PROPFIND request to guarantee that they can accurately reconstruct the binding structure of a @@ -22,13 +22,14 @@ collection with multiple bindings to a single resource. For backward compatibility with clients not aware of the 208 status code appearing in multistatus response bodies, it SHOULD NOT be used unless the client has signaled support for this specification using the "DAV" request -header (see [RFC5842 Section 8.2][2]). Instead, a 508 status should be +header (see [RFC5842Section 8.2][3]). Instead, a 508 status should be returned when a binding loop is discovered. This allows the server to return the 508 as the top-level return status, if it discovers it before it started the response, or in the middle of a multistatus, if it discovers it in the middle of streaming out a multistatus response. -Source: [RFC5842 Section 7.1](http://tools.ietf.org/html/rfc5842#section-7.1) +Source: [RFC5842 Section 7.1][1] -[1]: -[2]: +[1]: +[2]: +[3]: \ No newline at end of file diff --git a/contents/codes/226.md b/contents/codes/226.md index 49b8fcc..ec3ce86 100644 --- a/contents/codes/226.md +++ b/contents/codes/226.md @@ -12,7 +12,7 @@ the current instance. The actual current instance might not be available except by combining this response with other previous or future responses, as appropriate for the specific instance-manipulation(s). If so, the headers of the resulting instance are the result of combining the headers from the status-226 -response and the other instances, following the rules in [section 13.5.3][1] of +response and the other instances, following the rules in [section 13.5.3][2] of the HTTP/1.1 specification [10]. The request MUST have included an A-IM header field listing at least @@ -22,14 +22,14 @@ field giving the entity tag of the current instance. A response received with a status code of 226 MAY be stored by a cache and used in reply to a subsequent request, subject to the HTTP expiration mechanism and any Cache-Control headers, and to the -requirements in [section 10.6][2]. +requirements in [section 10.6][3]. A response received with a status code of 226 MAY be used by a cache, in conjunction with a cache entry for the base instance, to create a cache entry for the current instance. -Source: [RFC3229 Section 10.4.1][3] +Source: [RFC3229 Section 10.4.1][1] -[1]: -[2]: -[3]: +[1]: +[2]: +[3]: \ No newline at end of file From 62dd681756aac9750bb83bb22c15266f3a6357d8 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 03:04:37 +0000 Subject: [PATCH 26/40] Fixed 3xx code source reference numbering --- contents/codes/300.md | 16 ++++++++-------- contents/codes/301.md | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/contents/codes/300.md b/contents/codes/300.md index ad02d96..334ceef 100644 --- a/contents/codes/300.md +++ b/contents/codes/300.md @@ -13,7 +13,7 @@ information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one or more of those identifiers. In other words, the server desires that the user agent engage in reactive negotiation to select the most appropriate -representation(s) for its needs ([RFC7231 Section 3.4][1]). +representation(s) for its needs ([RFC7231 Section 3.4][2]). If the server has a preferred choice, the server SHOULD generate a Location header field containing a preferred choice's URI reference. The user agent MAY @@ -31,7 +31,7 @@ design or content negotiation, or in some commonly accepted hypertext format. A 300 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see -[Section 4.2.2 of RFC7234][2]). +[Section 4.2.2 of RFC7234][3]). Note: The original proposal for the 300 status code defined the URI header field as providing a list of alternative representations, such that it would be usable @@ -39,12 +39,12 @@ for 200, 300, and 406 responses and be transferred in responses to the HEAD method. However, lack of deployment and disagreement over syntax led to both URI and Alternates (a subsequent proposal) being dropped from this specification. It is possible to communicate the list using a set of Link header fields -[[RFC5988][3]], each with a relationship of "alternate", though deployment is a +[[RFC5988][4]], each with a relationship of "alternate", though deployment is a chicken-and-egg problem. -Source: [RFC7231 Section 6.4.1][4] +Source: [RFC7231 Section 6.4.1][1] -[1]: -[2]: -[3]: -[4]: \ No newline at end of file +[1]: +[2]: +[3]: +[4]: \ No newline at end of file diff --git a/contents/codes/301.md b/contents/codes/301.md index 42c3831..f5a7eab 100644 --- a/contents/codes/301.md +++ b/contents/codes/301.md @@ -23,9 +23,9 @@ POST to GET for the subsequent request. If this behavior is undesired, the A 301 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls -(see [Section 4.2.2 of [RFC7234]][1]). +(see [Section 4.2.2 of [RFC7234]][2]). -Source: [RFC7231 Section 6.4.2][2] +Source: [RFC7231 Section 6.4.2][1] -[1]: -[2]: \ No newline at end of file +[1]: +[2]: \ No newline at end of file From aed3e7179d66b9431ee7b7a5acb81850206a1ef5 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 04:34:05 +0000 Subject: [PATCH 27/40] word-wraps code tags to prevent scrolling --- contents/style.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/contents/style.scss b/contents/style.scss index 4658303..a9de3d8 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -45,6 +45,7 @@ p { code { background-color: #fff; + word-wrap: break-word; } .hero { From 689f94a4bb81f83fac3df985367cc06c9ac1d00c Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 04:34:40 +0000 Subject: [PATCH 28/40] Adds 4xx Client Error class status codes descriptions from latest standards --- contents/codes/400.md | 11 ++++++++++- contents/codes/401.md | 22 +++++++++++++++++++++- contents/codes/402.md | 8 +++++++- contents/codes/403.md | 20 +++++++++++++++++++- contents/codes/404.md | 18 +++++++++++++++++- contents/codes/405.md | 15 ++++++++++++++- contents/codes/406.md | 21 ++++++++++++++++++++- contents/codes/407.md | 16 +++++++++++++++- contents/codes/408.md | 14 +++++++++++++- contents/codes/409.md | 19 ++++++++++++++++++- contents/codes/410.md | 26 +++++++++++++++++++++++++- contents/codes/411.md | 13 ++++++++++++- contents/codes/412.md | 13 ++++++++++++- contents/codes/413.md | 17 +++++++++++++++-- contents/codes/414.md | 21 ++++++++++++++++++++- contents/codes/415.md | 12 +++++++++++- contents/codes/416.md | 37 ++++++++++++++++++++++++++++++++++++- contents/codes/417.md | 11 ++++++++++- contents/codes/418.md | 9 ++++++++- contents/codes/421.md | 26 +++++++++++++++++++++++++- contents/codes/422.md | 14 +++++++++++++- contents/codes/423.md | 10 +++++++++- contents/codes/424.md | 12 +++++++++++- contents/codes/426.md | 25 ++++++++++++++++++++++++- contents/codes/428.md | 31 ++++++++++++++++++++++++++++++- contents/codes/429.md | 38 +++++++++++++++++++++++++++++++++++++- contents/codes/431.md | 31 ++++++++++++++++++++++++++++++- contents/codes/499.md | 9 ++++++++- 28 files changed, 490 insertions(+), 29 deletions(-) diff --git a/contents/codes/400.md b/contents/codes/400.md index fa46bc2..a278ef6 100644 --- a/contents/codes/400.md +++ b/contents/codes/400.md @@ -2,6 +2,15 @@ set: 4 code: 400 title: Bad Request +references: + "Rails HTTP Status Symbol": "bad_request" --- -This is the contents of the 400 status code +The 400 (Bad Request) status code indicates that the server cannot or will not +process the request due to something that is perceived to be a client error +(e.g., malformed request syntax, invalid request message framing, or deceptive +request routing). + +Source: [RFC7231 Section 6.5.1][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/401.md b/contents/codes/401.md index d0f1667..b627f6c 100644 --- a/contents/codes/401.md +++ b/contents/codes/401.md @@ -2,6 +2,26 @@ set: 4 code: 401 title: Unauthorized +references: + "Rails HTTP Status Symbol": ":unauthorized" --- -This is the contents of the 401 status code +The 401 (Unauthorized) status code indicates that the request has not been +applied because it lacks valid authentication credentials for the target +resource. The server generating a 401 response MUST send a WWW-Authenticate +header field ([RFC7235 Section 4.1][2]) containing at least one challenge +applicable to the target resource. + +If the request included authentication credentials, then the 401 response +indicates that authorization has been refused for those credentials. The user +agent MAY repeat the request with a new or replaced Authorization header field +([RFC7235 Section 4.2][3]). If the 401 response contains the same challenge as +the prior response, and the user agent has already attempted authentication at +least once, then the user agent SHOULD present the enclosed representation to +the user, since it usually contains relevant diagnostic information. + +Source: [RFC7235 Section 3.1][1] + +[1]: +[2]: +[3]: \ No newline at end of file diff --git a/contents/codes/402.md b/contents/codes/402.md index 4f9424f..1817720 100644 --- a/contents/codes/402.md +++ b/contents/codes/402.md @@ -2,6 +2,12 @@ set: 4 code: 402 title: Payment Required +references: + "Rails HTTP Status Symbol": ":payment_required" --- -This is the contents of the 402 status code +The 402 (Payment Required) status code is reserved for future use. + +Source: [RFC7231 Section 6.5.2][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/403.md b/contents/codes/403.md index 3aa1307..b395f7a 100644 --- a/contents/codes/403.md +++ b/contents/codes/403.md @@ -2,6 +2,24 @@ set: 4 code: 403 title: Forbidden +references: + "Rails HTTP Status Symbol": ":forbidden" --- -This is the contents of the 403 status code +The 403 (Forbidden) status code indicates that the server understood the request +but refuses to authorize it. A server that wishes to make public why the request +has been forbidden can describe that reason in the response payload (if any). + +If authentication credentials were provided in the request, the server considers +them insufficient to grant access. The client SHOULD NOT automatically repeat +the request with the same credentials. The client MAY repeat the request with +new or different credentials. However, a request might be forbidden for reasons +unrelated to the credentials. + +An origin server that wishes to "hide" the current existence of a forbidden +target resource MAY instead respond with a status code of +[404 (Not Found)](/404). + +Source: [RFC7231 Section 6.5.3][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/404.md b/contents/codes/404.md index 10aaabf..a7d4f18 100644 --- a/contents/codes/404.md +++ b/contents/codes/404.md @@ -2,6 +2,22 @@ set: 4 code: 404 title: Not Found +references: + "Rails HTTP Status Symbol": ":not_found" --- -This is the contents of the 404 status code +The 404 (Not Found) status code indicates that the origin server did not find a +current representation for the target resource or is not willing to disclose +that one exists. A 404 status code does not indicate whether this lack of +representation is temporary or permanent; the [410 (Gone)](/410) status code is +preferred over 404 if the origin server knows, presumably through some +configurable means, that the condition is likely to be permanent. + +A 404 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][2]). + +Source: [RFC7231 6.5.4][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/405.md b/contents/codes/405.md index d82b4b8..b46ee09 100644 --- a/contents/codes/405.md +++ b/contents/codes/405.md @@ -2,6 +2,19 @@ set: 4 code: 405 title: Method Not Allowed +references: + "Rails HTTP Status Symbol": ":method_not_allowed" --- -This is the contents of the 405 status code +The 405 (Method Not Allowed) status code indicates that the method received in +the request-line is known by the origin server but not supported by the target +resource. The origin server MUST generate an Allow header field in a 405 +response containing a list of the target resource's currently supported methods. + +A 405 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls (see [Section 4.2.2 of RFC7234][2]). + +Source: [RFC7231 Section 6.5.5][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/406.md b/contents/codes/406.md index 7c35c27..0ce033c 100644 --- a/contents/codes/406.md +++ b/contents/codes/406.md @@ -2,6 +2,25 @@ set: 4 code: 406 title: Not Acceptable +references: + "Rails HTTP Status Symbol": ":not_acceptable" --- -This is the contents of the 406 status code +The 406 (Not Acceptable) status code indicates that the target resource does not +have a current representation that would be acceptable to the user agent, +according to the proactive negotiation header fields received in the request +([RFC7231 Section 5.3][2]), and the server is unwilling to supply a default +representation. + +The server SHOULD generate a payload containing a list of available +representation characteristics and corresponding resource identifiers from which +the user or user agent can choose the one most appropriate. A user agent MAY +automatically select the most appropriate choice from that list. However, this +specification does not define any standard for such automatic selection, as +described in [RFC7231 Section 6.4.1][3]. + +Source: [RFC7231 Section 6.5.6][1] + +[1]: +[2]: +[3]: \ No newline at end of file diff --git a/contents/codes/407.md b/contents/codes/407.md index b86c483..23ea756 100644 --- a/contents/codes/407.md +++ b/contents/codes/407.md @@ -2,6 +2,20 @@ set: 4 code: 407 title: Proxy Authentication Required +references: + "Rails HTTP Status Symbol": ":proxy_authentication_required" --- -This is the contents of the 407 status code +The 407 (Proxy Authentication Required) status code is similar to +[401 (Unauthorized)](/401), but it indicates that the client needs to +authenticate itself in order to use a proxy. The proxy MUST send a +Proxy-Authenticate header field ([Section 4.3][2]) containing a challenge +applicable to that proxy for the target resource. The client MAY repeat the +request with a new or replaced Proxy-Authorization header field +([Section 4.4][3]). + +Source: [RFC7235 Section 3.2][1] + +[1]: +[2]: +[3]: \ No newline at end of file diff --git a/contents/codes/408.md b/contents/codes/408.md index 117b4b9..42fe295 100644 --- a/contents/codes/408.md +++ b/contents/codes/408.md @@ -2,6 +2,18 @@ set: 4 code: 408 title: Request Timeout +references: + "Rails HTTP Status Symbol": ":request_timeout" --- -This is the contents of the 408 status code +The 408 (Request Timeout) status code indicates that the server did not receive +a complete request message within the time that it was prepared to wait. A +server SHOULD send the "close" connection option ([Section 6.1 of RFC7230][2]) +in the response, since 408 implies that the server has decided to close the +connection rather than continue waiting. If the client has an outstanding +request in transit, the client MAY repeat that request on a new connection. + +Source: [RFC7231 Section 6.5.7][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/409.md b/contents/codes/409.md index 6583dd9..8c59cd5 100644 --- a/contents/codes/409.md +++ b/contents/codes/409.md @@ -2,6 +2,23 @@ set: 4 code: 409 title: Conflict +references: + "Rails HTTP Status Symbol": ":conflict" --- -This is the contents of the 409 status code +The 409 (Conflict) status code indicates that the request could not be completed +due to a conflict with the current state of the target resource. This code is +used in situations where the user might be able to resolve the conflict and +resubmit the request. The server SHOULD generate a payload that includes enough +information for a user to recognize the source of the conflict. + +Conflicts are most likely to occur in response to a PUT request. For example, if +versioning were being used and the representation being PUT included changes to +a resource that conflict with those made by an earlier (third-party) request, +the origin server might use a 409 response to indicate that it can't complete +the request. In this case, the response representation would likely contain +information useful for merging the differences based on the revision history. + +Source: [RFC7231 Section 6.5.8][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/410.md b/contents/codes/410.md index 0b814f1..62eb1aa 100644 --- a/contents/codes/410.md +++ b/contents/codes/410.md @@ -2,6 +2,30 @@ set: 4 code: 410 title: Gone +references: + "Rails HTTP Status Symbol": ":gone" --- -This is the contents of the 410 status code +The 410 (Gone) status code indicates that access to the target resource is no +longer available at the origin server and that this condition is likely to be +permanent. If the origin server does not know, or has no facility to determine, +whether or not the condition is permanent, the status code +[404 (Not Found)](/404) ought to be used instead. + +The 410 response is primarily intended to assist the task of web maintenance by +notifying the recipient that the resource is intentionally unavailable and that +the server owners desire that remote links to that resource be removed. Such an +event is common for limited-time, promotional services and for resources +belonging to individuals no longer associated with the origin server's site. It +is not necessary to mark all permanently unavailable resources as "gone" or to +keep the mark for any length of time -- that is left to the discretion of the +server owner. + +A 410 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][2]). + +Source: [RFC7231 Section 6.5.9][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/411.md b/contents/codes/411.md index 90e114c..1183cf5 100644 --- a/contents/codes/411.md +++ b/contents/codes/411.md @@ -2,6 +2,17 @@ set: 4 code: 411 title: Length Required +references: + "Rails HTTP Status Symbol": ":length_required" --- -This is the contents of the 411 status code +The 411 (Length Required) status code indicates that the server refuses to +accept the request without a defined Content-Length +([Section 3.3.2 of RFC7230][2]). The client MAY repeat the request if it adds a +valid Content-Length header field containing the length of the message body in +the request message. + +Source: [RFC7231 Section 6.5.10][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/412.md b/contents/codes/412.md index ceee4e5..a546aa9 100644 --- a/contents/codes/412.md +++ b/contents/codes/412.md @@ -2,6 +2,17 @@ set: 4 code: 412 title: Precondition Failed +references: + "Rails HTTP Status Symbol": ":precondition_failed" --- -This is the contents of the 412 status code +The 412 (Precondition Failed) status code indicates that one or more conditions +given in the request header fields evaluated to false when tested on the server. +This response code allows the client to place preconditions on the current +resource state (its current representations and metadata) and, thus, prevent the +request method from being applied if the target resource is in an unexpected +state. + +Source: [RFC7232 Section 4.2][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/413.md b/contents/codes/413.md index 1ae51bb..ccd8440 100644 --- a/contents/codes/413.md +++ b/contents/codes/413.md @@ -1,7 +1,20 @@ --- set: 4 code: 413 -title: Request Entity Too Large +title: Payload Too Large +references: + "Rails HTTP Status Symbol": ":request_entity_too_large" --- -This is the contents of the 413 status code +The 413 (Payload Too Large) status code indicates that the server is refusing +to process a request because the request payload is larger than the server is +willing or able to process. The server MAY close the connection to prevent the +client from continuing the request. + +If the condition is temporary, the server SHOULD generate a Retry-After header +field to indicate that it is temporary and after what time the client MAY try +again. + +Source: [RFC7231 Section 6.5.11][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/414.md b/contents/codes/414.md index 54da908..54940a2 100644 --- a/contents/codes/414.md +++ b/contents/codes/414.md @@ -2,6 +2,25 @@ set: 4 code: 414 title: Request-URI Too Long +references: + "Rails HTTP Status Symbol": ":request_uri_too_long" --- -This is the contents of the 414 status code +The 414 (URI Too Long) status code indicates that the server is refusing to +service the request because the request-target ([Section 5.3 of RFC7230][2]) is +longer than the server is willing to interpret. This rare condition is only +likely to occur when a client has improperly converted a POST request to a GET +request with long query information, when the client has descended into a "black +hole" of redirection (e.g., a redirected URI prefix that points to a suffix of +itself) or when the server is under attack by a client attempting to exploit +potential security holes. + +A 414 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][3]). + +Source: [RFC7231 Section 6.5.12][1] + +[1]: +[2]: +[3]: \ No newline at end of file diff --git a/contents/codes/415.md b/contents/codes/415.md index 9bb649f..241061c 100644 --- a/contents/codes/415.md +++ b/contents/codes/415.md @@ -2,6 +2,16 @@ set: 4 code: 415 title: Unsupported Media Type +references: + "Rails HTTP Status Symbol": ":unsupported_media_type" --- -This is the contents of the 415 status code +The 415 (Unsupported Media Type) status code indicates that the origin server is +refusing to service the request because the payload is in a format not supported +by this method on the target resource. The format problem might be due to the +request's indicated Content-Type or Content-Encoding, or as a result of +inspecting the data directly. + +Source: [RFC7231 Section 6.5.13][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/416.md b/contents/codes/416.md index 34e9915..bef61f2 100644 --- a/contents/codes/416.md +++ b/contents/codes/416.md @@ -2,6 +2,41 @@ set: 4 code: 416 title: Requested Range Not Satisfiable +references: + "Rails HTTP Status Symbol": ":requested_range_not_satisfiable" --- -This is the contents of the 416 status code +The 416 (Range Not Satisfiable) status code indicates that none of the ranges in +the request's Range header field ([RFC7233 Section 3.1][2]) overlap the current +extent of the selected resource or that the set of ranges requested has been +rejected due to invalid ranges or an excessive request of small or overlapping +ranges. + +For byte ranges, failing to overlap the current extent means that the +first-byte-pos of all of the byte-range-spec values were greater than the +current length of the selected representation. When this status code is +generated in response to a byte-range request, the sender SHOULD generate a +Content-Range header field specifying the current length of the selected +representation ([RFC7233 Section 4.2][3]). + +For example: + +``` +HTTP/1.1 416 Range Not Satisfiable +Date: Fri, 20 Jan 2012 15:41:54 GMT +Content-Range: bytes */47022 +``` + +Note: Because servers are free to ignore Range, many implementations will simply +respond with the entire selected representation in a [200 (OK)](/200) response. +That is partly because most clients are prepared to receive a [200 (OK)](/200) +to complete the task (albeit less efficiently) and partly because clients might +not stop making an invalid partial request until they have received a complete +representation. Thus, clients cannot depend on receiving a +416 (Range Not Satisfiable) response even when it is most appropriate. + +Source: [RFC7233 Section 4.4][1] + +[1]: +[2]: +[3]: \ No newline at end of file diff --git a/contents/codes/417.md b/contents/codes/417.md index 7ba3e44..23f0e14 100644 --- a/contents/codes/417.md +++ b/contents/codes/417.md @@ -2,6 +2,15 @@ set: 4 code: 417 title: Expectation Failed +references: + "Rails HTTP Status Symbol": ":expectation_failed" --- -This is the contents of the 417 status code +The 417 (Expectation Failed) status code indicates that the expectation given in +the request's Expect header field ([RFC7231 Section 5.1.1][2]) could not be met +by at least one of the inbound servers. + +Source: [RFC7231 Section 6.5.14][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/418.md b/contents/codes/418.md index 0d041eb..66e19cb 100644 --- a/contents/codes/418.md +++ b/contents/codes/418.md @@ -2,6 +2,13 @@ set: 4 code: 418 title: I'm a teapot +references: + "Rails HTTP Status Symbol": ":i'm_a_teapot" --- -This is the contents of the 418 status code +Any attempt to brew coffee with a teapot should result in the error code +"418 I'm a teapot". The resulting entity body MAY be short and stout. + +Source: [RFC2324 Section 2.3.2][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/421.md b/contents/codes/421.md index af0ea8c..ea72110 100644 --- a/contents/codes/421.md +++ b/contents/codes/421.md @@ -2,6 +2,30 @@ set: 4 code: 421 title: Misdirected Request +references: + "Rails HTTP Status Symbol": ":misdirected_request" --- -This is the contents of the 421 status code +The 421 (Misdirected Request) status code indicates that the request was +directed at a server that is not able to produce a response. This can be sent by +a server that is not configured to produce responses for the combination of +scheme and authority that are included in the request URI. + +Clients receiving a 421 (Misdirected Request) response from a server MAY retry +the request -- whether the request method is idempotent or not -- over a +different connection. This is possible if a connection is reused +([RFC7540 Section 9.1.1][2]) or if an alternative service is selected +[ALT-SVC][3]. + +This status code MUST NOT be generated by proxies. + +A 421 response is cacheable by default, i.e., unless otherwise indicated by the +method definition or explicit cache controls +(see [Section 4.2.2 of RFC7234][4]). + +Source: [RFC7540 Section 9.1.2][1] + +[1]: +[2]: +[3]: +[4]: \ No newline at end of file diff --git a/contents/codes/422.md b/contents/codes/422.md index 9a4bd16..5419576 100644 --- a/contents/codes/422.md +++ b/contents/codes/422.md @@ -2,6 +2,18 @@ set: 4 code: 422 title: Unprocessable Entity +references: + "Rails HTTP Status Symbol": ":unprocessable_entity" --- -This is the contents of the 422 status code +The 422 (Unprocessable Entity) status code means the server understands the +content type of the request entity (hence a [415 (Unsupported Media Type)](/415) +status code is inappropriate), and the syntax of the request entity is correct +(thus a [400 (Bad Request)](/400) status code is inappropriate) but was unable +to process the contained instructions. For example, this error condition may +occur if an XML request body contains well-formed (i.e., syntactically correct), +but semantically erroneous, XML instructions. + +Source: [RFC4918 Section 11.2][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/423.md b/contents/codes/423.md index 69f456e..8fe1b54 100644 --- a/contents/codes/423.md +++ b/contents/codes/423.md @@ -2,6 +2,14 @@ set: 4 code: 423 title: Locked +references: + "Rails HTTP Status Symbol": ":locked" --- -This is the contents of the 423 status code +The 423 (Locked) status code means the source or destination resource of a +method is locked. This response SHOULD contain an appropriate precondition or +postcondition code, such as 'lock-token-submitted' or 'no-conflicting-lock'. + +Source: [RFC4918 Section 11.3][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/424.md b/contents/codes/424.md index 1bfeaf4..d0ebed0 100644 --- a/contents/codes/424.md +++ b/contents/codes/424.md @@ -2,6 +2,16 @@ set: 4 code: 424 title: Failed Dependency +references: + "Rails HTTP Status Symbol": "failed_dependency" --- -This is the contents of the 418 status code +The 424 (Failed Dependency) status code means that the method could not be +performed on the resource because the requested action depended on another +action and that action failed. For example, if a command in a PROPPATCH method +fails, then, at minimum, the rest of the commands will also fail with +424 (Failed Dependency). + +Source: [RFC4918 Section 11.4][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/426.md b/contents/codes/426.md index 5bb79ad..e27082d 100644 --- a/contents/codes/426.md +++ b/contents/codes/426.md @@ -2,6 +2,29 @@ set: 4 code: 426 title: Upgrade Required +references: + "Rails HTTP Status Symbol": ":upgrade_required" --- -This is the contents of the 426 status code +The 426 (Upgrade Required) status code indicates that the server refuses to +perform the request using the current protocol but might be willing to do so +after the client upgrades to a different protocol. The server MUST send an +Upgrade header field in a 426 response to indicate the required protocol(s) +(Section 6.7 of RFC7230][2]). + +Example: + +``` +HTTP/1.1 426 Upgrade Required +Upgrade: HTTP/3.0 +Connection: Upgrade +Content-Length: 53 +Content-Type: text/plain + +This service requires use of the HTTP/3.0 protocol. +``` + +Source: [RFC7231 Section 6.5.15][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/428.md b/contents/codes/428.md index 47fb562..5a36c99 100644 --- a/contents/codes/428.md +++ b/contents/codes/428.md @@ -4,4 +4,33 @@ code: 428 title: Precondition Required --- -This is the contents of the 428 status code +The 428 status code indicates that the origin server requires the request to be +conditional. + +Its typical use is to avoid the "lost update" problem, where a client GETs a +resource's state, modifies it, and PUTs it back to the server, when meanwhile a +third party has modified the state on the server, leading to a conflict. By +requiring requests to be conditional, the server can assure that clients are +working with the correct copies. + +Responses using this status code SHOULD explain how to resubmit the request +successfully. For example: + +``` +HTTP/1.1 428 Precondition Required +Content-Type: text/html + + + + Precondition Required + + +

Precondition Required

+

This request is required to be conditional; try using "If-Match".

+ + +``` + +Responses with the 428 status code MUST NOT be stored by a cache. + +[1]: \ No newline at end of file diff --git a/contents/codes/429.md b/contents/codes/429.md index 758bf97..4c25c0a 100644 --- a/contents/codes/429.md +++ b/contents/codes/429.md @@ -4,4 +4,40 @@ code: 429 title: Too Many Requests --- -This is the contents of the 429 status code +The 429 status code indicates that the user has sent too many requests in a +given amount of time ("rate limiting"). + +The response representations SHOULD include details explaining the condition, +and MAY include a Retry-After header indicating how long to wait before making a +new request. + +For example: + +``` +HTTP/1.1 429 Too Many Requests +Content-Type: text/html +Retry-After: 3600 + + + + Too Many Requests + + +

Too Many Requests

+

I only allow 50 requests per hour to this Web site per + logged in user. Try again soon.

+ + +``` + +Note that this specification does not define how the origin server identifies +the user, nor how it counts requests. For example, an origin server that is +limiting request rates can do so based upon counts of requests on a per-resource +basis, across the entire server, or even among a set of servers. Likewise, it +might identify the user by its authentication credentials, or a stateful cookie. + +Responses with the 429 status code MUST NOT be stored by a cache. + +Source: [RFC6585 Section 4][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/431.md b/contents/codes/431.md index 601b6a9..bf85d51 100644 --- a/contents/codes/431.md +++ b/contents/codes/431.md @@ -4,4 +4,33 @@ code: 431 title: Request Header Fields Too Large --- -This is the contents of the 431 status code +The 431 status code indicates that the server is unwilling to process the +request because its header fields are too large. The request MAY be resubmitted +after reducing the size of the request header fields. + +It can be used both when the set of request header fields in total is too large, +and when a single header field is at fault. In the latter case, the response +representation SHOULD specify which header field was too large. + +For example: + +``` +HTTP/1.1 431 Request Header Fields Too Large +Content-Type: text/html + + + + Request Header Fields Too Large + + +

Request Header Fields Too Large

+

The "Example" header was too large.

+ + +``` + +Responses with the 431 status code MUST NOT be stored by a cache. + +Source: [RFC6585 Section 5][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/499.md b/contents/codes/499.md index f4f3b11..15e7a48 100644 --- a/contents/codes/499.md +++ b/contents/codes/499.md @@ -6,4 +6,11 @@ code: 499 title: Client Closed Request --- -This is the contents of the 499 status code +The 499 Client Closed Request status is a non-standard status code introduced by +[nginx][2] for the case when a client closes the connection while nginx is +processing the request. + +Source: [nginx][1] + +[1]: +[2]: \ No newline at end of file From bdccf26e4c2ebe7a362d9598eafa66e33311e686 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:01:00 +0000 Subject: [PATCH 29/40] Fixes syntax error in 202 properties --- contents/codes/202.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/codes/202.md b/contents/codes/202.md index 855698f..238a4e5 100644 --- a/contents/codes/202.md +++ b/contents/codes/202.md @@ -3,7 +3,7 @@ set: 2 code: 202 title: Accepted references: - "Rails HTTP Status Symbol": ":accepted: + "Rails HTTP Status Symbol": ":accepted" --- The 202 (Accepted) status code indicates that the request has been accepted for From 8104649daf00a2054232687896001751001e6f05 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:05:36 +0000 Subject: [PATCH 30/40] Adds 5xx class status codes with descriptions from latest standards --- contents/codes/500.md | 10 ++++++- contents/codes/501.md | 16 ++++++++++- contents/codes/502.md | 15 ++++++++++ contents/codes/503.md | 17 ++++++++++- contents/codes/504.md | 10 ++++++- contents/codes/505.md | 15 +++++++++- contents/codes/506.md | 9 +++++- contents/codes/507.md | 11 ++++++- contents/codes/508.md | 8 +++++- contents/codes/510.md | 18 +++++++++++- contents/codes/511.md | 67 ++++++++++++++++++++++++++++++++++++++++++- contents/codes/599.md | 8 +++++- 12 files changed, 193 insertions(+), 11 deletions(-) create mode 100644 contents/codes/502.md diff --git a/contents/codes/500.md b/contents/codes/500.md index cc5e36d..2693bbf 100644 --- a/contents/codes/500.md +++ b/contents/codes/500.md @@ -2,6 +2,14 @@ set: 5 code: 500 title: Internal Server Error +references: + "Rails HTTP Status Symbol": ":internal_server_error" --- -This is the contents of the 500 status code +The 500 (Internal Server Error) status code indicates that the server +encountered an unexpected condition that prevented it from fulfilling the +request. + +Source: [RFC7231 Section 6.6.1][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/501.md b/contents/codes/501.md index fe78a3f..228520b 100644 --- a/contents/codes/501.md +++ b/contents/codes/501.md @@ -2,6 +2,20 @@ set: 5 code: 501 title: Not Implemented +references: + "Rails HTTP Status Symbol": ":not_implemented" --- -This is the contents of the 501 status code +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 +(see [Section 4.2.2 of RFC7234][1]). + +Source: [RFC7231 Section 6.6.2][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/502.md b/contents/codes/502.md new file mode 100644 index 0000000..294e50d --- /dev/null +++ b/contents/codes/502.md @@ -0,0 +1,15 @@ +--- +set: 5 +code: 502 +title: Bad Gateway +references: + "Rails HTTP Status Symbol": ":bad_gateway" +--- + +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. + +Source: [RFC7231 Section 6.6.3][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/503.md b/contents/codes/503.md index 402e136..12e7702 100644 --- a/contents/codes/503.md +++ b/contents/codes/503.md @@ -2,6 +2,21 @@ set: 5 code: 503 title: Service Unavailable +references: + "Rails HTTP Status Symbol": ":service_unavailable" --- -This is the contents of the 503 status code +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. + +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 +connection. + +Source: [RFC7231 Section 6.6.4][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/504.md b/contents/codes/504.md index 6e7ec26..3d2e2c6 100644 --- a/contents/codes/504.md +++ b/contents/codes/504.md @@ -2,6 +2,14 @@ set: 5 code: 504 title: Gateway Timeout +references: + "Rails HTTP Status Symbol": ":gateway_timeout" --- -This is the contents of the 504 status code +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. + +Source: [RFC7231 Section 6.6.5][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/505.md b/contents/codes/505.md index e31321f..fdd610c 100644 --- a/contents/codes/505.md +++ b/contents/codes/505.md @@ -2,6 +2,19 @@ set: 5 code: 505 title: HTTP Version Not Supported +references: + "Rails HTTP Status Symbol": ":http_version_not_supported" --- -This is the contents of the 505 status code +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 +[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. + +Source: [RFC7231 Section 6.6.6][1] + +[1]: +[2]: \ No newline at end of file diff --git a/contents/codes/506.md b/contents/codes/506.md index a0e4ddb..ef19e34 100644 --- a/contents/codes/506.md +++ b/contents/codes/506.md @@ -4,4 +4,11 @@ code: 506 title: Variant Also Negotiates --- -This is the contents of the 506 status code +The 506 status code indicates that the server has an internal configuration +error: the chosen variant resource is configured to engage in transparent +content negotiation itself, and is therefore not a proper end point in the +negotiation process. + +Source: [RFC2295 Section 8.1][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/507.md b/contents/codes/507.md index 0fe2378..f9dc1b1 100644 --- a/contents/codes/507.md +++ b/contents/codes/507.md @@ -2,6 +2,15 @@ set: 5 code: 507 title: Insufficient Storage +references: + "Rails HTTP Status Symbol": ":insufficient_storage" --- -This is the contents of the 507 status code +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. + +[1]: \ No newline at end of file diff --git a/contents/codes/508.md b/contents/codes/508.md index 39c0cc5..dd5907d 100644 --- a/contents/codes/508.md +++ b/contents/codes/508.md @@ -4,4 +4,10 @@ code: 508 title: Loop Detected --- -This is the contents of the 508 status code +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. + +Source: [RFC5842 Section 7.2][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/510.md b/contents/codes/510.md index c6e192d..640219c 100644 --- a/contents/codes/510.md +++ b/contents/codes/510.md @@ -2,6 +2,22 @@ set: 5 code: 510 title: Not Extended +references: + "Rails HTTP Status Symbol": ":not_extended" --- -This is the contents of the 510 status code +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 +the extensions inform the client. + +If the 510 response contains information about extensions that were not present +in the initial request then the client MAY repeat the request if it has reason +to believe it can fulfill the extension policy by modifying the request +according to the information provided in the 510 response. Otherwise the client +MAY present any entity included in the 510 response to the user, since that +entity may include relevant diagnostic information. + +Source: [RFC2774 Section 7][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/511.md b/contents/codes/511.md index df8a065..8f3ecff 100644 --- a/contents/codes/511.md +++ b/contents/codes/511.md @@ -4,4 +4,69 @@ code: 511 title: Network Authentication Required --- -This is the contents of the 511 status code +The 511 status code indicates that the client needs to authenticate to gain +network access. + +The response representation SHOULD contain a link to a resource that allows the +user to submit credentials (e.g., with an HTML form). + +Note that the 511 response SHOULD NOT contain a challenge or the login interface +itself, because browsers would show the login interface as being associated with +the originally requested URL, which may cause confusion. + +The 511 status SHOULD NOT be generated by origin servers; it is intended for use +by intercepting proxies that are interposed as a means of controlling access to +the network. + +Responses with the 511 status code MUST NOT be stored by a cache. + +The 511 status code is designed to mitigate problems caused by "captive portals" +to software (especially non-browser agents) that is expecting a response from +the server that a request was made to, not the intervening network infrastructure. +It is not intended to encourage deployment of captive portals -- only to limit +the damage caused by them. + +A network operator wishing to require some authentication, acceptance of terms, +or other user interaction before granting access usually does so by identifying +clients who have not done so ("unknown clients") using their Media Access +Control (MAC) addresses. + +Unknown clients then have all traffic blocked, except for that on TCP port 80, +which is sent to an HTTP server (the "login server") dedicated to "logging in" +unknown clients, and of course traffic to the login server itself. + +For example, a user agent might connect to a network and make the following HTTP +request on TCP port 80: + +``` +GET /index.htm HTTP/1.1 +Host: www.example.com +``` + +Upon receiving such a request, the login server would generate a 511 response: + +``` +HTTP/1.1 511 Network Authentication Required +Content-Type: text/html + + + + Network Authentication Required + + + +

You need to + authenticate with the local network in order to gain + access.

+ + +``` + +Here, the 511 status code assures that non-browser clients will not interpret +the response as being from the origin server, and the META HTML element +redirects the user agent to the login server. + +Source: [RFC6585 Section 6][1] + +[1]: \ No newline at end of file diff --git a/contents/codes/599.md b/contents/codes/599.md index 114cc85..40bdb55 100644 --- a/contents/codes/599.md +++ b/contents/codes/599.md @@ -6,4 +6,10 @@ code: 599 title: Network Connect Timeout Error --- -This is the contents of the 599 status code +This status code is not specified in any RFCs, but is used by some HTTP proxies +to signal a network connect timeout behind the proxy to a client in front of the +proxy. + +Source: [unknown?][1] + +[1]: \ No newline at end of file From e98a21f7bd57b61b913e370a90f0a7097adfc68b Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:24:05 +0000 Subject: [PATCH 31/40] Emphasise the first paragraph on a codes page, as the "simple" introduction to the code --- contents/style.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contents/style.scss b/contents/style.scss index a9de3d8..df9ab43 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -95,6 +95,10 @@ code { .code { margin: 25px auto; + p:first-of-type { + font-size: 16px; + } + h1 { font-family: 'Source Code Pro'; letter-spacing: 0.5px; From 265083fb14b635251bcec97f265d2ef6798f97d2 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:24:24 +0000 Subject: [PATCH 32/40] Gives 1xx codes simple opening paragraphs --- contents/codes/100.md | 2 +- contents/codes/101.md | 6 ++++-- contents/codes/102.md | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/contents/codes/100.md b/contents/codes/100.md index 90bd210..d480db9 100644 --- a/contents/codes/100.md +++ b/contents/codes/100.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":continue" --- -The 100 (Continue) status code indicates that the initial part of a request has +The 100 Continue status code indicates that the initial part of a request has been received and has not yet been rejected by the server. The server intends to send a final response after the request has been fully received and acted upon. diff --git a/contents/codes/101.md b/contents/codes/101.md index dec8010..6b51f2a 100644 --- a/contents/codes/101.md +++ b/contents/codes/101.md @@ -6,10 +6,12 @@ references: "Rails HTTP Status Symbol": ":switching_protocols" --- -The 101 (Switching Protocols) status code indicates that the server understands +The 101 Switching Protocols status code indicates that the server understands and is willing to comply with the client's request, via the Upgrade header field ([Section 6.7 of RFC7230][2]), for a change in the application protocol being -used on this connection. The server MUST generate an Upgrade header field in the +used on this connection. + +The server MUST generate an Upgrade header field in the response that indicates which protocol(s) will be switched to immediately after the empty line that terminates the 101 response. diff --git a/contents/codes/102.md b/contents/codes/102.md index c360a8c..e8d5fc6 100644 --- a/contents/codes/102.md +++ b/contents/codes/102.md @@ -6,9 +6,11 @@ references: "Rails HTTP Status Symbol": ":processing" --- -The 102 (Processing) status code is an interim response used to inform the +The 102 Processing status code is an interim response used to inform the client that the server has accepted the complete request, but has not yet -completed it. This status code SHOULD only be sent when the server has a +completed it. + +This status code SHOULD only be sent when the server has a reasonable expectation that the request will take significant time to complete. As guidance, if a method is taking longer than 20 seconds (a reasonable, but arbitrary value) to process the server SHOULD return a 102 (Processing) From b54c157c1c86a42668507822c0d23b86da33708c Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:31:20 +0000 Subject: [PATCH 33/40] Gives 2xx codes simple opening paragraphs --- contents/codes/200.md | 8 +++++--- contents/codes/201.md | 6 ++++-- contents/codes/202.md | 6 ++++-- contents/codes/203.md | 13 +++++++------ contents/codes/204.md | 9 +++++---- contents/codes/205.md | 2 +- contents/codes/206.md | 2 +- contents/codes/207.md | 11 ++++++----- contents/codes/208.md | 12 +++++++----- contents/codes/226.md | 14 ++++++++------ 10 files changed, 48 insertions(+), 35 deletions(-) diff --git a/contents/codes/200.md b/contents/codes/200.md index 92fb870..123229b 100644 --- a/contents/codes/200.md +++ b/contents/codes/200.md @@ -6,9 +6,11 @@ references: "Rails HTTP Status Symbol": ":not_found" --- -The 200 (OK) status code indicates that the request has succeeded. The payload -sent in a 200 response depends on the request method. For the methods defined by -this specification, the intended meaning of the payload can be summarized as: +The 200 OK status code indicates that the request has succeeded. The payload +sent in a 200 response depends on the request method. + +For the methods defined by this specification, the intended meaning of the +payload can be summarized as: GET a representation of the target resource diff --git a/contents/codes/201.md b/contents/codes/201.md index 121af8e..6d4a7a2 100644 --- a/contents/codes/201.md +++ b/contents/codes/201.md @@ -6,8 +6,10 @@ references: "Rails HTTP Status Symbol": ":created" --- -The 201 (Created) status code indicates that the request has been fulfilled and -has resulted in one or more new resources being created. The primary resource +The 201 Created status code indicates that the request has been fulfilled and +has resulted in one or more new resources being created. + +The primary resource created by the request is identified by either a Location header field in the response or, if no Location field is received, by the effective request URI. diff --git a/contents/codes/202.md b/contents/codes/202.md index 238a4e5..10251dd 100644 --- a/contents/codes/202.md +++ b/contents/codes/202.md @@ -6,10 +6,12 @@ references: "Rails HTTP Status Symbol": ":accepted" --- -The 202 (Accepted) status code indicates that the request has been accepted for +The 202 Accepted status code indicates that the request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing -actually takes place. There is no facility in HTTP for re-sending a status code +actually takes place. + +There is no facility in HTTP for re-sending a status code from an asynchronous operation. The 202 response is intentionally noncommittal. Its purpose is to allow a server diff --git a/contents/codes/203.md b/contents/codes/203.md index 6a749ed..f33e2b3 100644 --- a/contents/codes/203.md +++ b/contents/codes/203.md @@ -6,14 +6,15 @@ references: "Rails HTTP Status Symbol": ":non_authoritative_information" --- -The 203 (Non-Authoritative Information) status code indicates that the request +The 203 Non-Authoritative Information status code indicates that the request was successful but the enclosed payload has been modified from that of the origin server's [200 (OK)](/200) response by a transforming proxy -([Section 5.7.2 of RFC7230][2]). This status code allows the proxy to notify -recipients when a transformation has been applied, since that knowledge might -impact later decisions regarding the content. For example, future cache -validation requests for the content might only be applicable along the same -request path (through the same proxies). +([Section 5.7.2 of RFC7230][2]). + +This status code allows the proxy to notify recipients when a transformation has +been applied, since that knowledge might impact later decisions regarding the +content. For example, future cache validation requests for the content might +only be applicable along the same request path (through the same proxies). The 203 response is similar to the Warning code of 214 Transformation Applied ([Section 5.5 of RFC7234][3]), which has the advantage of being applicable to diff --git a/contents/codes/204.md b/contents/codes/204.md index f10e479..d99a9c4 100644 --- a/contents/codes/204.md +++ b/contents/codes/204.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": ":no_content" --- -The 204 (No Content) status code indicates that the server has successfully +The 204 No Content status code indicates that the server has successfully fulfilled the request and that there is no additional content to send in the -response payload body. Metadata in the response header fields refer to the -target resource and its selected representation after the requested action was -applied. +response payload body. + +Metadata in the response header fields refer to the target resource and its +selected representation after the requested action was applied. For example, if a 204 status code is received in response to a PUT request and the response contains an ETag header field, then the PUT was successful and the diff --git a/contents/codes/205.md b/contents/codes/205.md index c5feb78..979c176 100644 --- a/contents/codes/205.md +++ b/contents/codes/205.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":reset_content" --- -The 205 (Reset Content) status code indicates that the server has fulfilled the +The 205 Reset Content status code indicates that the server has fulfilled the request and desires that the user agent reset the "document view", which caused the request to be sent, to its original state as received from the origin server. diff --git a/contents/codes/206.md b/contents/codes/206.md index 3869266..8e728e9 100644 --- a/contents/codes/206.md +++ b/contents/codes/206.md @@ -4,7 +4,7 @@ code: 206 title: Partial Content --- -The 206 (Partial Content) status code indicates that the server is successfully +The 206 Partial Content status code indicates that the server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the request's Range header field (see [RFC7233 Section 3.1][2]). diff --git a/contents/codes/207.md b/contents/codes/207.md index 3c3504f..9e0a0b5 100644 --- a/contents/codes/207.md +++ b/contents/codes/207.md @@ -7,11 +7,12 @@ references: --- A Multi-Status response conveys information about multiple resources in -situations where multiple status codes might be appropriate. The default -Multi-Status response body is a text/xml or application/xml HTTP entity with a -'multistatus' root element. Further elements contain 200, 300, 400, and 500 -series status codes generated during the method invocation. 100 series status -codes SHOULD NOT be recorded in a 'response' XML element. +situations where multiple status codes might be appropriate. + +The default Multi-Status response body is a text/xml or application/xml HTTP +entity with a 'multistatus' root element. Further elements contain 200, 300, +400, and 500 series status codes generated during the method invocation. 100 +series status codes SHOULD NOT be recorded in a 'response' XML element. Although '207' is used as the overall response status code, the recipient needs to consult the contents of the multistatus response body for further information diff --git a/contents/codes/208.md b/contents/codes/208.md index 903d6f6..631a94f 100644 --- a/contents/codes/208.md +++ b/contents/codes/208.md @@ -4,12 +4,14 @@ code: 208 title: Already Reported --- -The 208 (Already Reported) status code can be used inside a DAV: propstat +The 208 Already Reported status code can be used inside a DAV: propstat response element to avoid enumerating the internal members of multiple bindings -to the same collection repeatedly. For each binding to a collection inside the -request's scope, only one will be reported with a 200 status, while subsequent -DAV:response elements for all other bindings will use the 208 status, and no -DAV:response elements for their descendants are included. +to the same collection repeatedly. + +For each binding to a collection inside the request's scope, only one will be +reported with a 200 status, while subsequent DAV:response elements for all other +bindings will use the 208 status, and no DAV:response elements for their +descendants are included. Note that the 208 status will only occur for "Depth: infinity" requests, and that it is of particular importance when the multiple collection bindings cause diff --git a/contents/codes/226.md b/contents/codes/226.md index ec3ce86..cdfd4dd 100644 --- a/contents/codes/226.md +++ b/contents/codes/226.md @@ -8,12 +8,14 @@ references: The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to -the current instance. The actual current instance might not be available except -by combining this response with other previous or future responses, as -appropriate for the specific instance-manipulation(s). If so, the headers of the -resulting instance are the result of combining the headers from the status-226 -response and the other instances, following the rules in [section 13.5.3][2] of -the HTTP/1.1 specification [10]. +the current instance. + +The actual current instance might not be available except by combining this +response with other previous or future responses, as appropriate for the +specific instance-manipulation(s). If so, the headers of the resulting instance +are the result of combining the headers from the status-226 response and the +other instances, following the rules in [section 13.5.3][2] of the +HTTP/1.1 specification [10]. The request MUST have included an A-IM header field listing at least one instance-manipulation. The response MUST include an Etag header From c53a008633a74d1dc710232220752205135ffa14 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:34:45 +0000 Subject: [PATCH 34/40] Gives 3xx codes simple opening paragraphs --- contents/codes/300.md | 3 +-- contents/codes/301.md | 10 ++++++---- contents/codes/302.md | 4 ++-- contents/codes/303.md | 6 ++++-- contents/codes/304.md | 15 ++++++++------- contents/codes/305.md | 2 +- contents/codes/307.md | 9 +++++---- contents/codes/308.md | 11 ++++++----- 8 files changed, 33 insertions(+), 27 deletions(-) diff --git a/contents/codes/300.md b/contents/codes/300.md index 334ceef..2a12a43 100644 --- a/contents/codes/300.md +++ b/contents/codes/300.md @@ -6,8 +6,7 @@ references: "Rails HTTP Status Symbol": ":multiple_choices" --- - -The 300 (Multiple Choices) status code indicates that the target resource has +The 300 Multiple Choices status code indicates that the target resource has more than one representation, each with its own more specific identifier, and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one diff --git a/contents/codes/301.md b/contents/codes/301.md index f5a7eab..ad768b8 100644 --- a/contents/codes/301.md +++ b/contents/codes/301.md @@ -6,11 +6,13 @@ references: "Rails HTTP Status Symbol": ":moved_permanently" --- -The 301 (Moved Permanently) status code indicates that the target resource has +The 301 Moved Permanently status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource -ought to use one of the enclosed URIs. Clients with link-editing capabilities -ought to automatically re-link references to the effective request URI to one or -more of the new references sent by the server, where possible. +ought to use one of the enclosed URIs. + +Clients with link-editing capabilities ought to automatically re-link references +to the effective request URI to one or more of the new references sent by the +server, where possible. The server SHOULD generate a Location header field in the response containing a preferred URI reference for the new permanent URI. The user agent MAY use the diff --git a/contents/codes/302.md b/contents/codes/302.md index 6a79cd3..64812c4 100644 --- a/contents/codes/302.md +++ b/contents/codes/302.md @@ -6,8 +6,8 @@ references: "Rails HTTP Status Symbol": ":found" --- -The 302 (Found) status code indicates that the target resource resides -temporarily under a different URI. Since the redirection might be altered on +The 302 Found status code indicates that the target resource resides temporarily +under a different URI. Since the redirection might be altered on occasion, the client ought to continue to use the effective request URI for future requests. diff --git a/contents/codes/303.md b/contents/codes/303.md index 0d6dd21..fb6dab2 100644 --- a/contents/codes/303.md +++ b/contents/codes/303.md @@ -6,10 +6,12 @@ references: "Rails HTTP Status Symbol": ":see_other" --- -The 303 (See Other) status code indicates that the server is redirecting the +The 303 See Other status code indicates that the server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, which is intended to provide an indirect response to the original -request. A user agent can perform a retrieval request targeting that URI (a GET +request. + +A user agent can perform a retrieval request targeting that URI (a GET or HEAD request if using HTTP), which might also be redirected, and present the eventual result as an answer to the original request. Note that the new URI in the Location header field is not considered equivalent to the effective request diff --git a/contents/codes/304.md b/contents/codes/304.md index eeb575a..88ecd14 100644 --- a/contents/codes/304.md +++ b/contents/codes/304.md @@ -6,14 +6,15 @@ references: "Rails HTTP Status Symbol": ":not_modified" --- -The 304 (Not Modified) status code indicates that a conditional GET or HEAD +The 304 Not Modified status code indicates that a conditional GET or HEAD request has been received and would have resulted in a [200 (OK)](/200) response -if it were not for the fact that the condition evaluated to false. In other -words, there is no need for the server to transfer a representation of the -target resource because the request indicates that the client, which made the -request conditional, already has a valid representation; the server is therefore -redirecting the client to make use of that stored representation as if it were -the payload of a [200 (OK)](/200) response. +if it were not for the fact that the condition evaluated to false. + +In other words, there is no need for the server to transfer a representation of +the target resource because the request indicates that the client, which made +the request conditional, already has a valid representation; the server is +therefore redirecting the client to make use of that stored representation as if +it were the payload of a [200 (OK)](/200) response. The server generating a 304 response MUST generate any of the following header fields that would have been sent in a [200 (OK)](/200) response to the same diff --git a/contents/codes/305.md b/contents/codes/305.md index 45bd2fb..33bde53 100644 --- a/contents/codes/305.md +++ b/contents/codes/305.md @@ -7,7 +7,7 @@ title: Use Proxy # - Due to deprecation we won't show this... but should we? --- -The 305 (Use Proxy) status code was defined in a previous version of this +The 305 Use Proxy status code was defined in a previous version of this specification and is now deprecated, due to security concerns regarding in-band configuration of a proxy. diff --git a/contents/codes/307.md b/contents/codes/307.md index d2c5a2a..36be560 100644 --- a/contents/codes/307.md +++ b/contents/codes/307.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": ":temporary_redirect" --- -The 307 (Temporary Redirect) status code indicates that the target resource +The 307 Temporary Redirect status code indicates that the target resource resides temporarily under a different URI and the user agent MUST NOT change the -request method if it performs an automatic redirection to that URI. Since the -redirection can change over time, the client ought to continue using the -original effective request URI for future requests. +request method if it performs an automatic redirection to that URI. + +Since the redirection can change over time, the client ought to continue using +the original effective request URI for future requests. The server SHOULD generate a Location header field in the response containing a URI reference for the different URI. The user agent MAY use the Location field diff --git a/contents/codes/308.md b/contents/codes/308.md index d6aa6db..d39ee03 100644 --- a/contents/codes/308.md +++ b/contents/codes/308.md @@ -4,12 +4,13 @@ code: 308 title: Permanent Redirect --- -The 308 (Permanent Redirect) status code indicates that the target resource has +The 308 Permanent Redirect status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource -ought to use one of the enclosed URIs. Clients with link editing capabilities -ought to automatically re-link references to the effective request URI -([Section 5.5 of RFC7230][2]) to one or more of the new references sent by the -server, where possible. +ought to use one of the enclosed URIs. + +Clients with link editing capabilities ought to automatically re-link references +to the effective request URI ([Section 5.5 of RFC7230][2]) to one or more of the +new references sent by the server, where possible. The server SHOULD generate a Location header field ([[RFC7231], Section 7.1.2][3]) in the response containing a preferred URI From 0bc4c7f008a5d8a6b55499c286120c84867590b7 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:45:46 +0000 Subject: [PATCH 35/40] Gives 4xx codes simple opening paragraphs --- contents/codes/400.md | 2 +- contents/codes/401.md | 10 ++++++---- contents/codes/403.md | 2 +- contents/codes/404.md | 12 +++++++----- contents/codes/405.md | 8 +++++--- contents/codes/406.md | 2 +- contents/codes/407.md | 13 +++++++------ contents/codes/408.md | 7 ++++--- contents/codes/409.md | 8 +++++--- contents/codes/410.md | 10 ++++++---- contents/codes/411.md | 9 +++++---- contents/codes/412.md | 3 ++- contents/codes/413.md | 6 ++++-- contents/codes/414.md | 15 ++++++++------- contents/codes/415.md | 9 +++++---- contents/codes/416.md | 2 +- contents/codes/417.md | 2 +- contents/codes/421.md | 2 +- contents/codes/422.md | 10 ++++++---- contents/codes/423.md | 6 ++++-- contents/codes/424.md | 9 +++++---- contents/codes/426.md | 9 +++++---- 22 files changed, 90 insertions(+), 66 deletions(-) diff --git a/contents/codes/400.md b/contents/codes/400.md index a278ef6..1dbfcb0 100644 --- a/contents/codes/400.md +++ b/contents/codes/400.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": "bad_request" --- -The 400 (Bad Request) status code indicates that the server cannot or will not +The 400 Bad Request status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). diff --git a/contents/codes/401.md b/contents/codes/401.md index b627f6c..578dc01 100644 --- a/contents/codes/401.md +++ b/contents/codes/401.md @@ -6,11 +6,13 @@ references: "Rails HTTP Status Symbol": ":unauthorized" --- -The 401 (Unauthorized) status code indicates that the request has not been +The 401 Unauthorized status code indicates that the request has not been applied because it lacks valid authentication credentials for the target -resource. The server generating a 401 response MUST send a WWW-Authenticate -header field ([RFC7235 Section 4.1][2]) containing at least one challenge -applicable to the target resource. +resource. + +The server generating a 401 response MUST send a WWW-Authenticate header field +([RFC7235 Section 4.1][2]) containing at least one challenge applicable to the +target resource. If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user diff --git a/contents/codes/403.md b/contents/codes/403.md index b395f7a..ce46e4b 100644 --- a/contents/codes/403.md +++ b/contents/codes/403.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":forbidden" --- -The 403 (Forbidden) status code indicates that the server understood the request +The 403 Forbidden status code indicates that the server understood the request but refuses to authorize it. A server that wishes to make public why the request has been forbidden can describe that reason in the response payload (if any). diff --git a/contents/codes/404.md b/contents/codes/404.md index a7d4f18..8fd190d 100644 --- a/contents/codes/404.md +++ b/contents/codes/404.md @@ -6,12 +6,14 @@ references: "Rails HTTP Status Symbol": ":not_found" --- -The 404 (Not Found) status code indicates that the origin server did not find a +The 404 Not Found status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose -that one exists. A 404 status code does not indicate whether this lack of -representation is temporary or permanent; the [410 (Gone)](/410) status code is -preferred over 404 if the origin server knows, presumably through some -configurable means, that the condition is likely to be permanent. +that one exists. + +A 404 status code does not indicate whether this lack of representation is +temporary or permanent; the [410 (Gone)](/410) status code is preferred over 404 +if the origin server knows, presumably through some configurable means, that the +condition is likely to be permanent. A 404 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls diff --git a/contents/codes/405.md b/contents/codes/405.md index b46ee09..a150143 100644 --- a/contents/codes/405.md +++ b/contents/codes/405.md @@ -6,10 +6,12 @@ references: "Rails HTTP Status Symbol": ":method_not_allowed" --- -The 405 (Method Not Allowed) status code indicates that the method received in +The 405 Method Not Allowed status code indicates that the method received in the request-line is known by the origin server but not supported by the target -resource. The origin server MUST generate an Allow header field in a 405 -response containing a list of the target resource's currently supported methods. +resource. + +The origin server MUST generate an Allow header field in a 405 response +containing a list of the target resource's currently supported methods. A 405 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see [Section 4.2.2 of RFC7234][2]). diff --git a/contents/codes/406.md b/contents/codes/406.md index 0ce033c..70d2d9d 100644 --- a/contents/codes/406.md +++ b/contents/codes/406.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":not_acceptable" --- -The 406 (Not Acceptable) status code indicates that the target resource does not +The 406 Not Acceptable status code indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request ([RFC7231 Section 5.3][2]), and the server is unwilling to supply a default diff --git a/contents/codes/407.md b/contents/codes/407.md index 23ea756..9845a98 100644 --- a/contents/codes/407.md +++ b/contents/codes/407.md @@ -6,13 +6,14 @@ references: "Rails HTTP Status Symbol": ":proxy_authentication_required" --- -The 407 (Proxy Authentication Required) status code is similar to +The 407 Proxy Authentication Required status code is similar to [401 (Unauthorized)](/401), but it indicates that the client needs to -authenticate itself in order to use a proxy. The proxy MUST send a -Proxy-Authenticate header field ([Section 4.3][2]) containing a challenge -applicable to that proxy for the target resource. The client MAY repeat the -request with a new or replaced Proxy-Authorization header field -([Section 4.4][3]). +authenticate itself in order to use a proxy. + +The proxy MUST send a Proxy-Authenticate header field ([Section 4.3][2]) +containing a challenge applicable to that proxy for the target resource. +The client MAY repeat the request with a new or replaced Proxy-Authorization +header field ([Section 4.4][3]). Source: [RFC7235 Section 3.2][1] diff --git a/contents/codes/408.md b/contents/codes/408.md index 42fe295..835d542 100644 --- a/contents/codes/408.md +++ b/contents/codes/408.md @@ -6,9 +6,10 @@ references: "Rails HTTP Status Symbol": ":request_timeout" --- -The 408 (Request Timeout) status code indicates that the server did not receive -a complete request message within the time that it was prepared to wait. A -server SHOULD send the "close" connection option ([Section 6.1 of RFC7230][2]) +The 408 Request Timeout status code indicates that the server did not receive +a complete request message within the time that it was prepared to wait. + +A server SHOULD send the "close" connection option ([Section 6.1 of RFC7230][2]) in the response, since 408 implies that the server has decided to close the connection rather than continue waiting. If the client has an outstanding request in transit, the client MAY repeat that request on a new connection. diff --git a/contents/codes/409.md b/contents/codes/409.md index 8c59cd5..48a4d56 100644 --- a/contents/codes/409.md +++ b/contents/codes/409.md @@ -6,11 +6,13 @@ references: "Rails HTTP Status Symbol": ":conflict" --- -The 409 (Conflict) status code indicates that the request could not be completed +The 409 Conflict status code indicates that the request could not be completed due to a conflict with the current state of the target resource. This code is used in situations where the user might be able to resolve the conflict and -resubmit the request. The server SHOULD generate a payload that includes enough -information for a user to recognize the source of the conflict. +resubmit the request. + +The server SHOULD generate a payload that includes enough information for a user +to recognize the source of the conflict. Conflicts are most likely to occur in response to a PUT request. For example, if versioning were being used and the representation being PUT included changes to diff --git a/contents/codes/410.md b/contents/codes/410.md index 62eb1aa..587579b 100644 --- a/contents/codes/410.md +++ b/contents/codes/410.md @@ -6,11 +6,13 @@ references: "Rails HTTP Status Symbol": ":gone" --- -The 410 (Gone) status code indicates that access to the target resource is no +The 410 Gone status code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be -permanent. If the origin server does not know, or has no facility to determine, -whether or not the condition is permanent, the status code -[404 (Not Found)](/404) ought to be used instead. +permanent. + +If the origin server does not know, or has no facility to determine, whether or +not the condition is permanent, the status code [404 (Not Found)](/404) ought to +be used instead. The 410 response is primarily intended to assist the task of web maintenance by notifying the recipient that the resource is intentionally unavailable and that diff --git a/contents/codes/411.md b/contents/codes/411.md index 1183cf5..887e288 100644 --- a/contents/codes/411.md +++ b/contents/codes/411.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": ":length_required" --- -The 411 (Length Required) status code indicates that the server refuses to +The 411 Length Required status code indicates that the server refuses to accept the request without a defined Content-Length -([Section 3.3.2 of RFC7230][2]). The client MAY repeat the request if it adds a -valid Content-Length header field containing the length of the message body in -the request message. +([Section 3.3.2 of RFC7230][2]). + +The client MAY repeat the request if it adds a valid Content-Length header field +containing the length of the message body in the request message. Source: [RFC7231 Section 6.5.10][1] diff --git a/contents/codes/412.md b/contents/codes/412.md index a546aa9..40389b3 100644 --- a/contents/codes/412.md +++ b/contents/codes/412.md @@ -6,8 +6,9 @@ references: "Rails HTTP Status Symbol": ":precondition_failed" --- -The 412 (Precondition Failed) status code indicates that one or more conditions +The 412 Precondition Failed status code indicates that one or more conditions given in the request header fields evaluated to false when tested on the server. + This response code allows the client to place preconditions on the current resource state (its current representations and metadata) and, thus, prevent the request method from being applied if the target resource is in an unexpected diff --git a/contents/codes/413.md b/contents/codes/413.md index ccd8440..ff50d84 100644 --- a/contents/codes/413.md +++ b/contents/codes/413.md @@ -6,9 +6,11 @@ references: "Rails HTTP Status Symbol": ":request_entity_too_large" --- -The 413 (Payload Too Large) status code indicates that the server is refusing +The 413 Payload Too Large status code indicates that the server is refusing to process a request because the request payload is larger than the server is -willing or able to process. The server MAY close the connection to prevent the +willing or able to process. + +The server MAY close the connection to prevent the client from continuing the request. If the condition is temporary, the server SHOULD generate a Retry-After header diff --git a/contents/codes/414.md b/contents/codes/414.md index 54940a2..a0cd617 100644 --- a/contents/codes/414.md +++ b/contents/codes/414.md @@ -6,14 +6,15 @@ references: "Rails HTTP Status Symbol": ":request_uri_too_long" --- -The 414 (URI Too Long) status code indicates that the server is refusing to +The 414 URI Too Long status code indicates that the server is refusing to service the request because the request-target ([Section 5.3 of RFC7230][2]) is -longer than the server is willing to interpret. This rare condition is only -likely to occur when a client has improperly converted a POST request to a GET -request with long query information, when the client has descended into a "black -hole" of redirection (e.g., a redirected URI prefix that points to a suffix of -itself) or when the server is under attack by a client attempting to exploit -potential security holes. +longer than the server is willing to interpret. + +This rare condition is only likely to occur when a client has improperly +converted a POST request to a GET request with long query information, when the +client has descended into a "black hole" of redirection (e.g., a redirected URI +prefix that points to a suffix of itself) or when the server is under attack by +a client attempting to exploit potential security holes. A 414 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls diff --git a/contents/codes/415.md b/contents/codes/415.md index 241061c..eefdb00 100644 --- a/contents/codes/415.md +++ b/contents/codes/415.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": ":unsupported_media_type" --- -The 415 (Unsupported Media Type) status code indicates that the origin server is +The 415 Unsupported Media Type status code indicates that the origin server is refusing to service the request because the payload is in a format not supported -by this method on the target resource. The format problem might be due to the -request's indicated Content-Type or Content-Encoding, or as a result of -inspecting the data directly. +by this method on the target resource. + +The format problem might be due to the request's indicated Content-Type or +Content-Encoding, or as a result of inspecting the data directly. Source: [RFC7231 Section 6.5.13][1] diff --git a/contents/codes/416.md b/contents/codes/416.md index bef61f2..423e631 100644 --- a/contents/codes/416.md +++ b/contents/codes/416.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":requested_range_not_satisfiable" --- -The 416 (Range Not Satisfiable) status code indicates that none of the ranges in +The 416 Range Not Satisfiable status code indicates that none of the ranges in the request's Range header field ([RFC7233 Section 3.1][2]) overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping diff --git a/contents/codes/417.md b/contents/codes/417.md index 23f0e14..26cc08e 100644 --- a/contents/codes/417.md +++ b/contents/codes/417.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":expectation_failed" --- -The 417 (Expectation Failed) status code indicates that the expectation given in +The 417 Expectation Failed status code indicates that the expectation given in the request's Expect header field ([RFC7231 Section 5.1.1][2]) could not be met by at least one of the inbound servers. diff --git a/contents/codes/421.md b/contents/codes/421.md index ea72110..80da972 100644 --- a/contents/codes/421.md +++ b/contents/codes/421.md @@ -6,7 +6,7 @@ references: "Rails HTTP Status Symbol": ":misdirected_request" --- -The 421 (Misdirected Request) status code indicates that the request was +The 421 Misdirected Request status code indicates that the request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI. diff --git a/contents/codes/422.md b/contents/codes/422.md index 5419576..f4ad301 100644 --- a/contents/codes/422.md +++ b/contents/codes/422.md @@ -6,13 +6,15 @@ references: "Rails HTTP Status Symbol": ":unprocessable_entity" --- -The 422 (Unprocessable Entity) status code means the server understands the +The 422 Unprocessable Entity status code means the server understands the content type of the request entity (hence a [415 (Unsupported Media Type)](/415) status code is inappropriate), and the syntax of the request entity is correct (thus a [400 (Bad Request)](/400) status code is inappropriate) but was unable -to process the contained instructions. For example, this error condition may -occur if an XML request body contains well-formed (i.e., syntactically correct), -but semantically erroneous, XML instructions. +to process the contained instructions. + +For example, this error condition may occur if an XML request body contains +well-formed (i.e., syntactically correct), but semantically erroneous, XML +instructions. Source: [RFC4918 Section 11.2][1] diff --git a/contents/codes/423.md b/contents/codes/423.md index 8fe1b54..31a616e 100644 --- a/contents/codes/423.md +++ b/contents/codes/423.md @@ -6,8 +6,10 @@ references: "Rails HTTP Status Symbol": ":locked" --- -The 423 (Locked) status code means the source or destination resource of a -method is locked. This response SHOULD contain an appropriate precondition or +The 423 Locked status code means the source or destination resource of a +method is locked. + +This response SHOULD contain an appropriate precondition or postcondition code, such as 'lock-token-submitted' or 'no-conflicting-lock'. Source: [RFC4918 Section 11.3][1] diff --git a/contents/codes/424.md b/contents/codes/424.md index d0ebed0..1f2a57c 100644 --- a/contents/codes/424.md +++ b/contents/codes/424.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": "failed_dependency" --- -The 424 (Failed Dependency) status code means that the method could not be +The 424 Failed Dependency status code means that the method could not be performed on the resource because the requested action depended on another -action and that action failed. For example, if a command in a PROPPATCH method -fails, then, at minimum, the rest of the commands will also fail with -424 (Failed Dependency). +action and that action failed. + +For example, if a command in a PROPPATCH method fails, then, at minimum, the +rest of the commands will also fail with 424 Failed Dependency. Source: [RFC4918 Section 11.4][1] diff --git a/contents/codes/426.md b/contents/codes/426.md index e27082d..c641e72 100644 --- a/contents/codes/426.md +++ b/contents/codes/426.md @@ -6,11 +6,12 @@ references: "Rails HTTP Status Symbol": ":upgrade_required" --- -The 426 (Upgrade Required) status code indicates that the server refuses to +The 426 Upgrade Required status code indicates that the server refuses to perform the request using the current protocol but might be willing to do so -after the client upgrades to a different protocol. The server MUST send an -Upgrade header field in a 426 response to indicate the required protocol(s) -(Section 6.7 of RFC7230][2]). +after the client upgrades to a different protocol. + +The server MUST send an Upgrade header field in a 426 response to indicate the +required protocol(s) (Section 6.7 of RFC7230][2]). Example: From fee183c7f3054d19f9ac63adaca879c06bbff28a Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:48:31 +0000 Subject: [PATCH 36/40] 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 From 9213cbfeca05e32efcbfbaab58c3fa6941096568 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 05:56:44 +0000 Subject: [PATCH 37/40] colours links pink instead of grey --- contents/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contents/style.scss b/contents/style.scss index df9ab43..4e97ddf 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -21,7 +21,7 @@ body { } a { - color: #556270; + color: #d6156d; font-weight: bold; text-decoration: none; } @@ -75,6 +75,7 @@ code { margin-bottom: 0px; a { + color: #556270; font-weight: normal; &:hover { From de1db3c4e8ad076ca3c164459db2c4ea1789c58d Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 06:25:30 +0000 Subject: [PATCH 38/40] Adds contribution guidelines to the README --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d726f44..b61fde3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,32 @@ # [httpstatus.es](http://httpstatus.es) [httpstatus.es](http://httpstatus.es) is an easy to reference database of HTTP Status Codes -with their definitions and helpful code references. \ No newline at end of file +with their definitions and helpful code references. + +## Contributing + +All contributions are welcome! If you have an idea to improve the website please +submit a pull request or [create an issue][1], or provide your thoughts on any +[open issues][1]. + +Each status code lives in a Markdown file at [contents/codes](contents/codes), +the easiest way to submit changes is via the GitHub editor. When contributing +changes to the status codes please be mindful of the following: + +* Soft line length of 80 for Markdown +* Markdown links should be used as [references instead of inline][2] +* If an RFC or external document is referenced, make the reference a link +* Source information on a status code from the most recent standards available + (Status Code standards directory is available on [iana.org][3]) +* The opening paragraph of a status code should describe the meaning, following + paragraphs can describe implementation +* Don't edit the meaning of descriptions, but formatting and structural + changes are a-okay +* [Don't double-space after a period][4], and remove any examples of it +* If the description references a section in the current RFC, always add the RFC + identifier. For example "Section 6.6" should become "RFC1234 Section 6.6" + +[1]: +[2]: +[3]: +[4]: From 06fd7ce8b1a08d64b133f4c1e69964164ca1c75d Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 14:55:32 +0000 Subject: [PATCH 39/40] Emphasises opening paragraph and separates from further information with border --- contents/style.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contents/style.scss b/contents/style.scss index 4e97ddf..8260401 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -97,7 +97,9 @@ code { margin: 25px auto; p:first-of-type { - font-size: 16px; + font-size: 18px; + padding-bottom: 10px; + border-bottom: 2px solid #eee; } h1 { From 9abb6754a2dc58ed09a9d164e12f5ea6ff1e97d7 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Sat, 7 Nov 2015 14:55:55 +0000 Subject: [PATCH 40/40] Listens to the master branch for deploys --- .gitignore | 1 - circle.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1c94fea..c08cd9c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.idea .vagrant node_modules bower_components diff --git a/circle.yml b/circle.yml index a8a06b4..a94195b 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,6 @@ dependencies: deployment: production: - branch: metalsmith + branch: master commands: - ./deploy.sh \ No newline at end of file