502 Bad Gateway

Recently while working on a client’s website, the issue of a 502 Bad Gateway error came up. During this error, the cPanel was accessible but the site & WordPress login was not. After a bit of searching for a viable solution, the answer was a surprisingly straight forward – one of the plugins had become corrupted during an update.