[wp-trac] [WordPress Trac] #55610: HTTP response should not be 200 when returning error-page

WordPress Trac noreply at wordpress.org
Sat Apr 23 09:21:41 UTC 2022

#55610: HTTP response should not be 200 when returning error-page
 Reporter:  april213      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  trunk
 Severity:  major         |   Keywords:
  Focuses:                |
 Current behavior:
 When WordPress web site was under high concurrency access, the database
 connections may reach the limitation of the system resource. WordPress was
 still returning 200 of HTTP response code when database connection error

 The page with error information as:
 Error establishing a database connection
 This either means that the username and password information in your wp-
 config.php file is incorrect or we can't contact the database server at
 dbhost. This could mean your host's database server is down.

 Expected behavior: Returns HTTP code with 500 or other error codes to
 indicate error happens, when showing error pages.

Ticket URL: <https://core.trac.wordpress.org/ticket/55610>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list