Returning 5xx error from origin


I was wondering, Cloudflare has a default error page for 5xx errors. However, if my origin returns, for example, a 500 error with a json body, will Cloudflare keep that body, or does it replace it?
I couldn’t find anything about this in the docs nor here on the forums.


You can build custom error pages on your website and keep any information you want.
custom pages → 500 class errors


Do note Error 500, 501, 503, and 505 responses do not trigger custom error pages to avoid breaking specific API endpoints and other web applications.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.