Skip to Content
1
Nov 27, 2019 at 08:36 AM

Handling Exception in APIM

743 Views

Hello,

Is it possible to handle the exception received from Gateway in API Management?

I need to add a policy in order to customize the response content before send it back to client, but it is not working properly.

Condition: error.state equals "TARGET_RESP_FLOW"

Policy added to outgoing response of Target Endpoint but it not being called.

From debug:

Current Step: Error

Properties:
error:Received non success response code
type:ErrorPoint
state:TARGET_RESP_FLOW
error.class:com.apigee.errors.http.server.BadGateway

Thanks in advance,

Maicon.