Shared Hosting and Error 502 messages

That statement is in no way accurate.

5xx errors usually come from the host.