If you get the error description from a captured WebApplicationException thrown from the application code then you can rely on exception.getResponse().getStatus(), otherwise it's your own code which decides what type should be allocated
Cheers, Sergey On Wed, Jun 8, 2011 at 5:26 PM, javanewbie <[email protected]> wrote: > Thank you for the reply. I debugged it. It has status code 404. > > It started working fine after adding type: > builder.entity(error).build().type("application/xml"); > > But, is there any better way to add the type dynamically? > > Thank you > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/ExceptionMapper-question-handling-exceptions-tp4463312p4470061.html > Sent from the cxf-user mailing list archive at Nabble.com. >
