Added 502 response counting & notification