Hi…
May I know what is the in general error status code that is used for handling the Unhandled or Unexpected errors in both proxy endpoint & target endpoint as well.
Thanks in advance.
Hi…
May I know what is the in general error status code that is used for handling the Unhandled or Unexpected errors in both proxy endpoint & target endpoint as well.
Thanks in advance.
Apigee will generally send back a 500 status code your proxy causes a fault and does not explicitly handle it. Examples can include: referencing a non-existent variable in a Condition or policy configuration, a JSON parsing failure in a JavaScript callout, an XSL policy referencing a resource that cannot be resolved, a target sending back an invalid/malformed response…
There are exceptions to that. A few of them:
Different step types in Apigee can generate different errors. You should be able to find the documentation for them. As an example, here is the link to the documentation for the OAuthV2 policy that describes the status codes that get sent when runtime errors occur.
And of course the RaiseFault policy can send back any status.
I encourage you to test these situations yourself.