Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36bf706

Browse files
committed
bug #16585 Add support for HTTP status code 418 back (dawehner)
This PR was merged into the 2.8 branch. Discussion ---------- Add support for HTTP status code 418 back See https://gist.github.com/anonymous/a863d7b493c4b09733ec what this results into | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | 16584 | License | MIT | Doc PR | Commits ------- db5fbe0 add it back
2 parents 7748b05 + db5fbe0 commit 36bf706

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ class Response
160160
415 => 'Unsupported Media Type',
161161
416 => 'Range Not Satisfiable',
162162
417 => 'Expectation Failed',
163+
418 => 'I\'m a teapot', // RFC2324
163164
422 => 'Unprocessable Entity', // RFC4918
164165
423 => 'Locked', // RFC4918
165166
424 => 'Failed Dependency', // RFC4918

0 commit comments

Comments
 (0)