8000 [HttpFoundation] Fix ianaCodesReasonPhrasesProvider to consume a loca… · symfony/symfony@10f1f38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10f1f38

Browse files
committed
[HttpFoundation] Fix ianaCodesReasonPhrasesProvider to consume a local file
1 parent 7b9fc09 commit 10f1f38

File tree

3 files changed

+379
-19
lines changed

3 files changed

+379
-19
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class Response
125125
*
126126
* The list of codes is complete according to the
127127
* {@link https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Hypertext Transfer Protocol (HTTP) Status Code Registry}
128-
* (last updated 2016-03-01).
128+
* (last updated 2018-09-21).
129129
*
130130
* Unless otherwise noted, the status code is defined in RFC2616.
131131
*
Lines changed: 375 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,375 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<?xml-stylesheet type="text/xsl" href="http-status-codes.xsl"?>
3+
<?xml-model href="http-status-codes.rng" schematypens="http://relaxng.org/ns/structure/1.0" ?>
4+
<registry xmlns="http://www.iana.org/assignments" id="http-status-codes">
5+
<title>Hypertext Transfer Protocol (HTTP) Status Code Registry</title>
6+
<updated>2018-09-21</updated>
7+
<registry id="http-status-codes-1">
8+
<title>HTTP Status Codes</title>
9+
<xref type="rfc" data="rfc7231"/>
10+
<registration_rule>IETF Review</registration_rule>
11+
<note>1xx: Informational - Request received, continuing process
12+
2xx: Success - The action was successfully received, understood, and accepted
13+
3xx: Redirection - Further action must be taken in order to complete the request
14+
4xx: Client Error - The request contains bad syntax or cannot be fulfilled
15+
5xx: Server Error - The server failed to fulfill an apparently valid request
16+
</note>
17+
<record>
18+
<value>100</value>
19+
<description>Continue</description>
20+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.2.1</xref>
21+
</record>
22+
<record>
23+
<value>101</value>
24+
<description>Switching Protocols</description>
25+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.2.2</xref>
26+
</record>
27+
<record>
28+
<value>102</value>
29+
<description>Processing</description>
30+
<xref type="rfc" data="rfc2518"/>
31+
</record>
32+
<record date="2017-10-30">
33+
<value>103</value>
34+
<description>Early Hints</description>
35+
<xref type="rfc" data="rfc8297"/>
36+
</record>
37+
<record>
38+
<value>104-199</value>
39+
<description>Unassigned</description>
40+
</record>
41+
<record>
42+
<value>200</value>
43+
<description>OK</description>
44+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.3.1</xref>
45+
</record>
46+
<record>
47+
<value>201</value>
48+
<description>Created</description>
49+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.3.2</xref>
50+
</record>
51+
<record>
52+
<value>202</value>
53+
<description>Accepted</description>
54+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.3.3</xref>
55+
</record>
56+
<record>
57+
<value>203</value>
58+
<description>Non-Authoritative Information</description>
59+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.3.4</xref>
60+
</record>
61+
<record>
62+
<value>204</value>
63+
<description>No Content</description>
64+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.3.5</xref>
65+
</record>
66+
<record>
67+
<value>205</value>
68+
<description>Reset Content</description>
69+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.3.6</xref>
70+
</record>
71+
<record>
72+
<value>206</value>
73+
<description>Partial Content</description>
74+
<xref type="rfc" data="rfc7233">RFC7233, Section 4.1</xref>
75+
</record>
76+
<record>
77+
<value>207</value>
78+
<description>Multi-Status</description>
79+
<xref type="rfc" data="rfc4918"/>
80+
</record>
81+
<record>
82+
<value>208</value>
83+
<description>Already Reported</description>
84+
<xref type="rfc" data="rfc5842"/>
85+
</record>
86+
<record>
87+
<value>209-225</value>
88+
<description>Unassigned</description>
89+
</record>
90+
<record>
91+
<value>226</value>
92+
<description>IM Used</description>
93+
<xref type="rfc" data="rfc3229"/>
94+
</record>
95+
<record>
96+
<value>227-299</value>
97+
<description>Unassigned</description>
98+
</record>
99+
<record>
100+
<value>300</value>
101+
<description>Multiple Choices</description>
102+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.1</xref>
103+
</record>
104+
<record>
105+
<value>301</value>
106+
<description>Moved Permanently</description>
107+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.2</xref>
108+
</record>
109+
<record>
110+
<value>302</value>
111+
<description>Found</description>
112+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.3</xref>
113+
</record>
114+
<record>
115+
<value>303</value>
116+
<description>See Other</description>
117+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.4</xref>
118+
</record>
119+
<record>
120+
<value>304</value>
121+
<description>Not Modified</description>
122+
<xref type="rfc" data="rfc7232">RFC7232, Section 4.1</xref>
123+
</record>
124+
<record>
125+
<value>305</value>
126+
<description>Use Proxy</description>
127+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.5</xref>
128+
</record>
129+
<record>
130+
<value>306</value>
131+
<description>(Unused)</description>
132+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.6</xref>
133+
</record>
134+
<record>
135+
<value>307</value>
136+
<description>Temporary Redirect</description>
137+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.4.7</xref>
138+
</record>
139+
<record updated="2015-02-09">
140+
<value>308</value>
141+
<description>Permanent Redirect</description>
142+
<xref type="rfc" data="rfc7538"/>
143+
</record>
144+
<record>
145+
<value>309-399</value>
146+
<description>Unassigned</description>
147+
</record>
148+
<record>
149+
<value>400</value>
150+
<description>Bad Request</description>
151+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.1</xref>
152+
</record>
153+
<record>
154+
<value>401</value>
155+
<description>Unauthorized</description>
156+
<xref type="rfc" data="rfc7235">RFC7235, Section 3.1</xref>
157+
</record>
158+
<record>
159+
<value>402</value>
160+
<description>Payment Required</description>
161+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.2</xref>
162+
</record>
163+
<record>
164+
<value>403</value>
165+
<description>Forbidden</description>
166+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.3</xref>
167+
</record>
168+
<record>
169+
<value>404</value>
170+
<description>Not Found</description>
171+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.4</xref>
172+
</record>
173+
<record>
174+
<value>405</value>
175+
<description>Method Not Allowed</description>
176+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.5</xref>
177+
</record>
178+
<record>
179+
<value>406</value>
180+
<description>Not Acceptable</description>
181+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.6</xref>
182+
</record>
183+
<record>
184+
<value>407</value>
185+
<description>Proxy Authentication Required</description>
186+
<xref type="rfc" data="rfc7235">RFC7235, Section 3.2</xref>
187+
</record>
188+
<record>
189+
<value>408</value>
190+
<description>Request Timeout</description>
191+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.7</xref>
192+
</record>
193+
<record>
194+
<value>409</value>
195+
<description>Conflict</description>
196+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.8</xref>
197+
</record>
198+
<record>
199+
<value>410</value>
200+
<description>Gone</description>
201+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.9</xref>
202+
</record>
203+
<record>
204+
<value>411</value>
205+
<description>Length Required</description>
206+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.10</xref>
207+
</record>
208+
<record>
209+
<value>412</value>
210+
<description>Precondition Failed</description>
211+
<xref type="rfc" data="rfc7232">RFC7232, Section 4.2</xref>
212+
<xref type="rfc" data="rfc8144">RFC8144, Section 3.2</xref>
213+
</record>
214+
<record>
215+
<value>413</value>
216+
<description>Payload Too Large</description>
217+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.11</xref>
218+
</record>
219+
<record>
220+
<value>414</value>
221+
<description>URI Too Long</description>
222+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.12</xref>
223+
</record>
224+
<record updated="2015-09-20">
225+
<value>415</value>
226+
<description>Unsupported Media Type</description>
227+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.13</xref>
228+
<xref type="rfc" data="rfc7694">RFC7694, Section 3</xref>
229+
</record>
230+
<record>
231+
<value>416</value>
232+
<description>Range Not Satisfiable</description>
233+
<xref type="rfc" data="rfc7233">RFC7233, Section 4.4</xref>
234+
</record>
235+
<record>
236+
<value>417</value>
237+
<description>Expectation Failed</description>
238+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.14</xref>
239+
</record>
240+
<record>
241+
<value>418-420</value>
242+
<description>Unassigned</description>
243+
</record>
244+
<record date="2015-02-20">
245+
<value>421</value>
246+
<description>Misdirected Request</description>
247+
<xref type="rfc" data="rfc7540">RFC7540, Section 9.1.2</xref>
248+
</record>
249+
<record>
250+
<value>422</value>
251+
<description>Unprocessable Entity</description>
252+
<xref type="rfc" data="rfc4918"/>
253+
</record>
254+
<record>
255+
<value>423</value>
256+
<description>Locked</description>
257+
<xref type="rfc" data="rfc4918"/>
258+
</record>
259+
<record>
260+
<value>424</value>
261+
<description>Failed Dependency</description>
262+
<xref type="rfc" data="rfc4918"/>
263+
</record>
264+
<record date="2018-07-02">
265+
<value>425</value>
266+
<description>Too Early</description>
267+
<xref type="rfc" data="rfc8470"/>
268+
</record>
269+
<record>
270+
<value>426</value>
271+
<description>Upgrade Required</description>
272+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.5.15</xref>
273+
</record>
274+
<record>
275+
<value>427</value>
276+
<description>Unassigned</description>
277+
</record>
278+
<record>
279+
<value>428</value>
280+
<description>Precondition Required</description>
281+
<xref type="rfc" data="rfc6585"/>
282+
</record>
283+
<record>
284+
<value>429</value>
285+
<description>Too Many Requests</description>
286+
<xref type="rfc" data="rfc6585"/>
287+
</record>
288+
<record>
289+
<value>430</value>
290+
<description>Unassigned</description>
291+
</record>
292+
<record>
293+
<value>431</value>
294+
<description>Request Header Fields Too Large</description>
295+
<xref type="rfc" data="rfc6585"/>
296+
</record>
297+
<record>
298+
<value>432-450</value>
299+
<description>Unassigned</description>
300+
</record>
301+
<record date="2015-12-21">
302+
<value>451</value>
303+
<description>Unavailable For Legal Reasons</description>
304+
<xref type="rfc" data="rfc7725"/>
305+
</record>
306+
<record>
307+
<value>452-499</value>
308+
<description>Unassigned</description>
309+
</record>
310+
<record>
311+
<value>500</value>
312+
<description>Internal Server Error</description>
313+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.6.1</xref>
314+
</record>
315+
<record>
316+
<value>501</value>
317+
<description>Not Implemented</description>
318+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.6.2</xref>
319+
</record>
320+
<record>
321+
<value>502</value>
322+
<description>Bad Gateway</description>
323+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.6.3</xref>
324+
</record>
325+
<record>
326+
<value>503</value>
327+
<description>Service Unavailable</description>
328+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.6.4</xref>
329+
</record>
330+
<record>
331+
<value>504</value>
332+
<description>Gateway Timeout</description>
333+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.6.5</xref>
334+
</record>
335+
<record>
336+
<value>505</value>
337+
<description>HTTP Version Not Supported</description>
338+
<xref type="rfc" data="rfc7231">RFC7231, Section 6.6.6</xref>
339+
</record>
340+
<record>
341+
<value>506</value>
342+
<description>Variant Also Negotiates</description>
343+
<xref type="rfc" data="rfc2295"/>
344+
</record>
345+
<record>
346+
<value>507</value>
347+
<description>Insufficient Storage</description>
348+
<xref type="rfc" data="rfc4918"/>
349+
</record>
350+
<record>
351+
<value>508</value>
352+
<description>Loop Detected</description>
353+
<xref type="rfc" data="rfc5842"/>
354+
</record>
355+
<record>
356+
<value>509</value>
357+
<description>Unassigned</description>
358+
</record>
359+
<record>
360+
<value>510</value>
361+
<description>Not Extended</description>
362+
<xref type="rfc" data="rfc2774"/>
363+
</record>
364+
<record>
365+
<value>511</value>
366+
<description>Network Authentication Required</description>
367+
<xref type="rfc" data="rfc6585"/>
368+
</record>
369+
<record>
370+
<value>512-599</value>
371+
<description>Unassigned</description>
372+
</record>
373+
</registry>
374+
<people/>
375+
</registry>

0 commit comments

Comments
 (0)
0