[Jersey] Re: How to catch MessageBodyProviderNotFoundException.

From: Miroslav Fuksa <>
Date: Fri, 23 Aug 2013 13:49:48 +0200


Ok, I understand. In that case you will need to handle the exception in
a container and produce an appropriate response. These exceptions cannot
be handled in Jersey.


On 08/23/2013 01:37 PM, wrote:
> I tend to agree that a missing message body provider is a fault of the
> application developer.
> What I'm basically want to do - also in case of a developer error -
> catch all exceptions and return a 200. The 200 response will wrap the
> actual exception being thrown containing the message.
> The reason for this is some browsers/clients (e.g. Flash) will not
> process the obdy of non-200 results.