the simplest way to evaluate the 504 error is always to retry the website. Give it a couple of seconds then seek to revisit the web site.
Clear Cache (Optional): In case your CDN caches some written content, remember https://woracious.com/seo/ramifications-of-the-504-error-on-seo/