Http error 502 and 504 issue

Hi,

While doing load testing I am getting many Http errors(screenshot attached) 502 and 504 and these requests are not showing on the load balancer metrics also.

Could somebody please help here why are these errors occurring?

Thanks,
Ratnesh.