As per document by default, Apigee Edge treats HTTP code 4XX or 5XX as errors, and it treats HTTP code 1XX, 2XX, 3XX as succes. We can change this using success.codes property under Target endpoint. However, we are seeing the proxy treating 304 as error in our proxy. There is no properties defined in HTTPTargetConnection on our proxy.
HTTPTargetConnection configuration:
<HTTPTargetConnection> <LoadBalancer> <Server name="AdS12Target"/> </LoadBalancer> <Path>/</Path> </HTTPTargetConnection>
Trace:
The red highlighted policies are under DefaultFaultRule. I also see the gateway taking long time even though the backend responding fast.
I can see the similar issue reported here - https://community.apigee.com/questions/70530/for-304-status-code-from-services-the-gateway-take.html
Is this a bug?
@Dino-at-Google