Azure application gateway displays 502 bad gateway error
, while application returns 401
or 500 errors
. It should send whatever the application sends but by default it sends 502
. Any idea what happen and any configuration or code change suggestions?
EDIT:
We are using node js
for our API service. When a client tries to hit the endpoint without any auth header
, then the service will return 401 error
. This error is transformed into 502
when it's passing the App gateway.