From 2b2eedb74e7b7935ead0ddf4d27991d9f824ea0c Mon Sep 17 00:00:00 2001 From: Baptiste Dupuch Date: Mon, 14 Sep 2015 20:59:07 +0200 Subject: [PATCH 1/2] Added the right revision date for status code registry --- src/Symfony/Component/HttpFoundation/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index df36c5a931cba..f671748aa53a3 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -55,7 +55,7 @@ class Response * * The list of codes is complete according to the * {@link http://www.iana.org/assignments/http-status-codes/ Hypertext Transfer Protocol (HTTP) Status Code Registry} - * (last updated 2012-02-13). + * (last updated 2015-05-19). * * Unless otherwise noted, the status code is defined in RFC2616. * From 322656988acb9eb8e06e4fed7339789a5e2abc20 Mon Sep 17 00:00:00 2001 From: Baptiste Dupuch Date: Tue, 15 Sep 2015 08:50:44 +0200 Subject: [PATCH 2/2] Update Response status code in line with iana --- src/Symfony/Component/HttpFoundation/Response.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index f671748aa53a3..b603d5324f301 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -81,7 +81,6 @@ class Response 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', - 306 => 'Reserved', 307 => 'Temporary Redirect', 308 => 'Permanent Redirect', // RFC7238 400 => 'Bad Request', @@ -97,12 +96,11 @@ class Response 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', - 413 => 'Request Entity Too Large', - 414 => 'Request-URI Too Long', + 413 => 'Payload Too Large', + 414 => 'URI Too Long', 415 => 'Unsupported Media Type', - 416 => 'Requested Range Not Satisfiable', + 416 => 'Range Not Satisfiable', 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', // RFC2324 422 => 'Unprocessable Entity', // RFC4918 423 => 'Locked', // RFC4918 424 => 'Failed Dependency', // RFC4918