If the STA status is showing as down, check your STA server (This is the same server as your delivery controller) is up. Also check the Manage Citrix Gateway, on your Storefront GUI is configured correctly
Check the Gateway FQDN is correct,

Make sure the URL for the STA server is also correct.

And make sure you have correctly specified DNS Name server correctly on the ADC