Edit: Gemini says you could make a custom worker and do a 5XX redirect that way, but I haven't tried it. Does make sense though.
which sometimes gets annoying because branding for subdomains could be different.
https://developers.cloudflare.com/rules/custom-errors/edit-e...