Hi,
I am making a service callout to another local api-proxy which raises fault for prohibited request verb with response status code 405. But in the caller API-proxy, I am getting the calloutResponse.status.code as 200 OK. I am handling fault in the caller proxy for "Method Not Allowed" based on the calloutResponse.status.code.
How to fix the overriding of calloutResponse.status.code?
Thanks,
Raghu
Can you please add the necessary screenshots for the same
Hi Nisha,
Please find below the necessary screenshots.
1. Service-Callout from API-1(Caller API)
2. RaiseFault in API-2 (Calledout API)
3. Trace in API-2 (Calledout API)
4. RaiseFault in API-1 (Caller API)
5. Trace in API-1 (Caller API)
Thanks & regards,
Raghu
Hi,
I found the issue. I was not providing the 'Allow' header in the RaiseFault policy.
I did following highlighted change and it worked.
Thanks & regards,
Raghu