Does Dynatrace capture 502 error code?

Hello @JyothiNaikar

Yes. Use below filter to get the result for http 5xx under multidimensional view.

Cheers!

RN