[wp-trac] [WordPress Trac] #4183: HTTP Status 302 has wrong text defined for HTTP 1.1

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 23 21:27:37 GMT 2007


#4183: HTTP Status 302 has wrong text defined for HTTP 1.1
----------------------------+-----------------------------------------------
 Reporter:  nberardi        |       Owner:  anonymous                        
     Type:  defect          |      Status:  new                              
 Priority:  normal          |   Milestone:  2.3                              
Component:  Administration  |     Version:  2.2                              
 Severity:  minor           |    Keywords:  http, status, code, 302, 303, 307
----------------------------+-----------------------------------------------
 For the method status_header() in http://trac.wordpress.org/browser/trunk
 /wp-includes/functions.php?rev=2623#L1852, it defines HTTP Status code of
 302 for the text "Moved Temporarily".

 This is the correct behavior for HTTP 1.0 however in HTTP 1.1 the Status
 Code 302 is defined as "Found" and Status Code 307 is defined as "Moved
 Temporarily".

 302 Found
 http://tools.ietf.org/html/rfc2616#section-10.3.3

 303 See Other
 http://tools.ietf.org/html/rfc2616#section-10.3.4

 307 Temporary Redirect
 http://tools.ietf.org/html/rfc2616#section-10.3.8

 The history of why this change was made, was because of the abuse of the
 302 Status Code for as application level redirects.  So the governing body
 decided to split 302 out in to 3 different codes.  "302 Found" was suppose
 to be the anti-"404 Not Found".  "303 See Other" is what most developers
 use Status Code 302 for, meaning that you should see this other site after
 a certain process as occurred such as a POST.  And then you have "307
 Temporary Redirect" as in we are temporarily redirecting traffic because
 the page you requested is being worked on.

 The change that I request is that "303 See Other" be used instead of the
 current "302  Moved Temporarily", or in the very least you update the text
 to reflect the "302 Found".  I hope you take this in to consideration when
 releasing you next major release.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4183>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list