users@jersey.java.net

[Jersey] HTTP 304 is silently dropping the entity

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Fri, 25 Nov 2011 10:13:56 -0800 (PST)

Hi,

I've defined a @PUT method which returns:

   Response.notModified().entity("test").build();

When I examined the response, I noticed that the entity is missing. When I
replace notModified() by ok() or serverError() the entity shows up. Why is
notModified() dropping the entity? I'd like to provide clients an
explanation of why the resource was not modified.

Thanks,
Gili

--
View this message in context: http://jersey.576304.n2.nabble.com/HTTP-304-is-silently-dropping-the-entity-tp7032018p7032018.html
Sent from the Jersey mailing list archive at Nabble.com.