Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 145a893

Browse filesBrowse files
committed
[HttpFoundation] Update http messages of statuses 413 and 422
1 parent 7eeb6bf commit 145a893
Copy full SHA for 145a893

File tree

2 files changed

+103
-102
lines changed
Filter options

2 files changed

+103
-102
lines changed

‎src/Symfony/Component/HttpFoundation/Response.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Response.php
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Response
138138
*
139139
* The list of codes is complete according to the
140140
* {@link https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Hypertext Transfer Protocol (HTTP) Status Code Registry}
141-
* (last updated 2018-09-21).
141+
* (last updated 2021-10-01).
142142
*
143143
* Unless otherwise noted, the status code is defined in RFC2616.
144144
*
@@ -180,14 +180,14 @@ class Response
180180
410 => 'Gone',
181181
411 => 'Length Required',
182182
412 => 'Precondition Failed',
183-
413 => 'Payload Too Large',
183+
413 => 'Content Too Large', // RFC-ietf-httpbis-semantics
184184
414 => 'URI Too Long',
185185
415 => 'Unsupported Media Type',
186186
416 => 'Range Not Satisfiable',
187187
417 => 'Expectation Failed',
188188
418 => 'I\'m a teapot', // RFC2324
189189
421 => 'Misdirected Request', // RFC7540
190-
422 => 'Unprocessable Entity', // RFC4918
190+
422 => 'Unprocessable Content', // RFC-ietf-httpbis-semantics
191191
423 => 'Locked', // RFC4918
192192
424 => 'Failed Dependency', // RFC4918
193193
425 => 'Too Early', // RFC-ietf-httpbis-replay-04
@@ -1078,8 +1078,6 @@ public function setVary($headers, bool $replace = true): object
10781078
* If the Response is not modified, it sets the status code to 304 and
10791079
* removes the actual content by calling the setNotModified() method.
10801080
*
1081-
* @return bool
1082-
*
10831081
* @final
10841082
*/
10851083
public function isNotModified(Request $request): bool

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.