A 5xx error comes from the host. In this case, your server is timing out when Cloudflare attempts to get your web page.