Try Catch bloğu içerisinde 502 hata kodunu handle edip tekrar denemesini sağlayabilirsiniz.