Good morning. This site https://www.lifewire.com/504-gateway-timeout-error-explained-2622941 explains the error more clearly than I could. I recommend rebooting...
Go to this link and follow the directions to get to the version you purchased:https://community.intuit.com/articles/1774711-download-quickbooks-desktop