I have been getting 504 gateway errors intermittently today. It's not me. It's not you. I reported the issue to my webhosting company and they have confirmed they are having issues.
It seems to be hardware related and they are working to correct the issue.
I will keep you updated as I know more.
Thanks