Does setting "success.codes" on TargetEndpoint overwrite the defaults, or append to them?

If I set "success.codes" in a TargetEndpoint as shown below:

<TargetEndpoint name="default">
  ...
  <HTTPTargetConnection>
    <Properties>
  <Property name="success.codes">400, 500</Property>
    </Properties>
    <URL>http://weather.yahooapis.com</URL>
  </HTTPTargetConnection>
</TargetEndpoint>

Does it overwrite the current value of "success.codes" or append to it?

If it appends to it, should the correct setting be as below to preserve the defaults?

<Property name="success.codes">1xx,2xx,3xx,400,500</Property>

Thanks,

Stephen

Solved Solved
1 4 1,436
1 ACCEPTED SOLUTION

@sgilson,

Yes, It overrides it. It doesn't append.

With below property

<Property name="success.codes">1xx,2xx,3xx,404,500</Property>

apigee.edge.execution.is_target_error value is empty in AX insertion.

579-screen-shot-2015-06-11-at-61244-pm.png

With below property

<Property name="success.codes">1xx,3xx,404,500</Property>

apigee.edge.execution.is_target_error value is 1 even though i got 200 response back.

Cheers,

Anil Sagar

View solution in original post

4 REPLIES 4

In the question above, I meant to say:

If it overwrites to it, should the correct setting be as below to preserve the defaults?

<Propertyname="success.codes">1xx,2xx,3xx,400,500</Property>

@sgilson,

Yes, It overrides it. It doesn't append.

With below property

<Property name="success.codes">1xx,2xx,3xx,404,500</Property>

apigee.edge.execution.is_target_error value is empty in AX insertion.

579-screen-shot-2015-06-11-at-61244-pm.png

With below property

<Property name="success.codes">1xx,3xx,404,500</Property>

apigee.edge.execution.is_target_error value is 1 even though i got 200 response back.

Cheers,

Anil Sagar

Thanks Anil

Anytime 🙂 @sgilson See updated screenshots for more details..