i am getting an error 403 when i am not passing client id and secret. This is an exception scenario where i should be sending some headers in the response.So i had set an property y http.status as 403 ans passed the headers . But i dint see the headers in the response. Actually when am trying to hit the API it is giving me 403 and body as missing client id and secret but i have set payload different in my property .
5 answers
Hi @mahaveri,
It looks like, in case of API policy violations, the Gateway uses a default exception strategy. Please check the below url to see whether setting up a customized exception block for 'before' advice would help here:
lhttps://docs.mulesoft.com/api-manager/cust-pol-exception-blocks-reference