If the World-wide-web host doesn’t use cPanel, there should be an area for logs in your hosting dashboard.
This comprehensive post includes a in depth Evaluation of standard 504 Gateway Timeout error causes and https://woracious.com/seo/ramifications-of-the-504-error-on-seo/