[wp-trac] [WordPress Trac] #2971: Errors are not returned with an HTTP error code.

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 23 06:11:05 GMT 2006


#2971: Errors are not returned with an HTTP error code.
---------------------+------------------------------------------------------
 Reporter:  hugoh    |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:           
Component:  General  |     Version:  2.0.3    
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 It looks like WordPress always returns an HTTP 200 status code, even when
 it is unable to process the request.

 For example, if it cannot connect to the database it replies with a
 "HTTP/1.1 200 OK" saying "Error establishing a database connection", when
 it's obviously not OK since it could not fulfill the request. In this
 case, a 500 should be used since the server encountered an error.

 Basically, errors should not be returned with an HTTP 200, which implies
 that the request was processed normally.

 Regards,

 Hugo

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


More information about the wp-trac mailing list