Yes, that worked, didn't think of that, my bad. I found another issue, where only for ClientErrorException, i need to set header whereas for other types, i dont have to.
return Response.status(Response.Status.NOT_FOUND).header("Content-Type",
"application/json")
--
View this message in context:
http://cxf.547215.n5.nabble.com/Avoid-stacktrace-in-response-when-error-occurs-tp5748315p5748351.html
Sent from the cxf-user mailing list archive at Nabble.com.
