AnsweredAssumed Answered

Accessing status codes in global policy

Question asked by Chaitanya.Naidu on Jan 9, 2019
Latest reply on Jan 10, 2019 by Stephen_Hughes

Hi,

 

I would like to catch all the generic faults( thrown by Gateway) within Global policy and structure the message according to my needs.  something like if the URI is not found I would like to throw 404 and json structure response rather than soap fault.  Similarly, if http method is not allowed then I would like to through different error codes.  Finally any un-handled assertion soap fault at service layer need to be caught and send with appropriate status codes to client.

Please help me in achieving this using global policy so that I no need to code in every policy

Outcomes