Serve 502 and 504 error pages directly from the origin.
quick question guys, how does that work? i fail to understand how to serve error page from origin if you got 502 bad gateway and 504 timeout.
i did try to read the documentation but nothing mention this subject.
you can find it on Zone level > Error Page [New]
thank you, have a nice day.
3 Replies
Feedback
Feedback has been submitted! Thank you :)
Your origin can respond with those status codes. A popular example is nginx reverse proxying to an internal service, and it failing to connect and thus 502 gateway. With that disabled, you'll get a Cloudflare version of the 502 page. With that enabled, you'll see the response sent from your origin alongside the 502
obv for errors where it can entirely not connect to your origin (like 521/522), it can't show an origin response, but those are noted as exclusions
aaah, i get that, thanks mate now i understand