Error 524 on my website

On further testing the server does eventually respond but it takes 1.5 - 3 minutes

$ time telnet 204.93.160.98 80
Trying 204.93.160.98...
Connected to 204.93.160.98.
Escape character is '^]'.

GET / HTTP/1.1
Host: halabeek.com


HTTP/1.1 301 Moved Permanently
Date: Tue, 09 Aug 2022 17:18:43 GMT
Server: Apache
cf-edge-cache: cache, platform=WordPress
X-Redirect-By: WordPress
Location: https://halabeek.com/
Vary: Accept-Encoding
Content-Length: 0
Content-Type: text/html; charset=UTF-8

Connection closed by foreign host.

real    3m6.263s
user    0m0.000s
sys     0m0.000s
$ time curl -I https://halabeek.com/
HTTP/1.1 200 OK
Date: Tue, 09 Aug 2022 17:20:36 GMT
Server: Apache
cf-edge-cache: cache, platform=WordPress
Link: <https://halabeek.com/wp-json/>; rel="https://api.w.org/", <https://halabeek.com/wp-json/wp/v2/pages/5661>; rel="alternate"; type="application/json", <https://halabeek.com/>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8


real    1m26.925s
user    0m0.000s
sys     0m0.016s
$ time curl -I http://halabeek.com/
HTTP/1.1 301 Moved Permanently
Date: Tue, 09 Aug 2022 17:20:21 GMT
Server: Apache
cf-edge-cache: cache, platform=WordPress
X-Redirect-By: WordPress
Location: https://halabeek.com/
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8


real    1m31.578s
user    0m0.000s
sys     0m0.016s

Cloudflare’s proxy isn’t going to wait that long so that’s why you saw a 524 when the traffic was proxied through Cloudflare