I have set retry policy in Azure APIM to track 503 errors.
<backend>
<retry condition="@(context.Response.StatusCode == 503)" count="3" interval="5" first-fast-retry="true">
<forward-request buffer-request-body="true" />
</retry>
</backend>
When backend api has connectivity issue, we try 3 times and then give up the retry.
This works great however eventhough the internal error is caught as 503, we get 500 Internal server error as response.
How do we get correct return code as 503 in outbound ?