Is there a step by step diagnostic for when a Discourse site is found in a 502 Bad Gateway?

From reading a lot of posts here, typically forum admins aren’t the cause of 502s, and it’s a plugin/core error. So there wouldn’t be particularly much you could do to avoid those issues.

Console logs always help, they can pinpoint the problematic plugin a lot of times.