[wp-trac] [WordPress Trac] #55610: HTTP response should not be 200 when returning error-page
WordPress Trac
noreply at wordpress.org
Mon Nov 28 21:14:42 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:
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by rochow):
Had a website with "can't establish a connection" error message. Weird
because some pages work. Checked everything and all good.
Turns out the error page still returns header 200 (!!!) so it fell into
the cache, and a random intermittent issue turned into however many hours
of downtime.
Such an easy fix and it's best practice, header 200 is only when things
are okay.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55610#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list