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.
This commit is contained in:
Nathan J. Brauer 2017-10-18 12:27:00 -07:00 committed by GitHub
parent 6a8540d6d6
commit bcc2cc6a0b

View File

@ -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
);
/**