Layer7 API Management

 View Only

 Acknowledgement from Gateway

Jump to  Best Answer
GSTN Middleware's profile image
GSTN Middleware posted Jan 06, 2025 07:42 AM

Hi Team,

We have a requirement to configure an API where an acknowledgment from the gateway with HTTP status code 202 needs to be sent to the user once they hit the API. Also, after this acknowledgment is sent to the user, the request should be routed to the backend. How do we configure this configure API with this requirement?

Thanks!!

Ben Urbanski's profile image
Broadcom Employee Ben Urbanski  Best Answer

You can add a Return Template Response to Requestor assertion to your policy before the route assertion to the backend. Specify a response HTTP status of 202 and select to send the response immediately. This is the response the client will receive from the gateway, though the policy will continue to execute and forward the request to the backend.