Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to capture 413 error in Apigee?

Can you please suggest to me how I can capture a 413 error in Apigee? I added the below conditions in proxy <faultRule>. Tried all 3 conditions, none of them worked.

error.errorcode = "protocol.http.TooBigBody"

error.state.code = 413

error.class="com.apigee.errors.http.user.requestTooLarge"

<FaultRule name="Too Large Request">

<Condition>(error.errorcode = "protocol.http.TooBigBody")</Condition>

<Step>

<Name>RF-TooLargeRequest</Name>

</Step>

</FaultRule>

Tried the same condition in <DefaultFaultRules>, it still didn't work. Appreciate your suggestion.

0 15 1,231
15 REPLIES 15