Where to find rejected connections?

Hello!

Ray ID can be used where you have Cloudflare Logs enabled.

You can take a look here regarding the 504:

You can turn off proxy for that particular DNS record: