From bcc2cc6a0b333984e3c6a801a352a0a63030cdb9 Mon Sep 17 00:00:00 2001 From: "Nathan J. Brauer" Date: Wed, 18 Oct 2017 12:27:00 -0700 Subject: [PATCH] Adding 308 HTTP Response as an redirect code https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Often times, 308 are preferred over 301 redirects, as they tell the requester to, for example, re-POST a form submission on the final URL. --- src/Control/HTTPResponse.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Control/HTTPResponse.php b/src/Control/HTTPResponse.php index 0173a9a2c..67c378fba 100644 --- a/src/Control/HTTPResponse.php +++ b/src/Control/HTTPResponse.php @@ -35,6 +35,7 @@ class HTTPResponse 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', 400 => 'Bad Request', 401 => 'Unauthorized', 403 => 'Forbidden', @@ -71,7 +72,8 @@ class HTTPResponse 303, 304, 305, - 307 + 307, + 308 ); /**