504 after switching DNS to Cloudflare

I reviewed that information. This is on an API endpoint, so the “color page with Cloudflare branding” does not apply. The 504 was observed in browser dev console under Network tab.