A great deal will depend upon how cozy you will be with logs or whether your safety plugin supports them or not.
To keep your website managing smoothly and stop foreseeable future occurrences with the 504 Gateway https://woracious.com/seo/ramifications-of-the-504-error-on-seo/