search cancel

Customize Error Response When rate-limit assertion fails

book

Article ID: 202050

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

When throttle or shape is enabled Gateway throws generic 503 service not available error.

Since this message is not a valid xml/json format clients are not able to process.

We are looking to implement a custom error response. 

Implemented below which is not working, even added to all assertion must equal to true block.

 

Cause

Policy logic 

Environment

Release : 9.4

Component : API GATEWAY

Resolution

Use the following Policy Logic :

2  Audit Message in Policy
3  Customize SOAP Fault Response Template Fault
4  All assertions must evaluate to true
5      Customize error response
6  At least one assertion must evaluate to true
7        Apply Rate Limit:
8  Route via HTTP to xxxx

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/10-0/policy-assertions/assertion-palette/logging-auditing-and-alerts-assertions/customize-soap-fault-response-assertion.html

Attachments