Hi all,
are there any possibilities to adjust the default responses from the API Gateway for example the "204 No Content"? Means can we adjust the HTTP status code or at least the body of the response?
And if so, how and where can this be done?
Thank you!
Regards,
Stefan
Hi all,
You can use a catch all policy, which will be called upon every time a service is not called on the Gateway. You can set this up by creating a publishing a new Web API and give the Gateway URL an endpoint of an asterisk (*). You can then edit this policy and use the return template to customize your response for error 204, or play around with the "Customize Error Response" assertion.
Kind Regards,
Anwar