Sometimes you getting that when i guess the traffic data is to big or you hit the site reload button and acting to fast.
There are at some stage some breaks but normaly it should be working with in a few minutes after you getting the message for bad gateway.
It also can be something have to do with cloudflare , sometimes.
You should be not worried about it.