Error 522 indicates that the service was unable to reach the origin web server at all. It could be so because the server was overloaded or down, its firewall was blocking requests or misconfiguration with DNS and IP addresses.
Read full news article on HackRead