[Jersey] Jersey 2.0 - bad request response

From: Dana Ariel (daariel) <"Dana>
Date: Thu, 29 Aug 2013 19:19:57 +0000

Hi All,
I'm usig Jersey 2.0 and I've noticed that when returning a bad request response the request entity is not present in the respone.

For example:

Here is how I build the response:
return Response.status(Status.BAD_REQUEST).entity("incorrct list item request").build();

here is what the user gets back in the response body:
The expected behavior is that the entity string will be returned.

Thanks for your help,

(image/png attachment: image001.png)