users@jersey.java.net

[Jersey] Re: HTTP 304 is silently dropping the entity

From: Graham Leggett <minfrin_at_sharp.fm>
Date: Sun, 27 Nov 2011 13:39:17 +0000

On 26 Nov 2011, at 19:12, Gili <cowwoc_at_bbs.darktech.org> wrote:

> Fair enough, but shouldn't Jersey throw an exception to indicate I did something wrong instead of silently dropping parts of my response? :)

Silently dropping the response is required by the HTTP spec. Read v10.3.5 of RFC2616 for details.

As to whether jersey should throw an exception, it probably should, but exceptions aren't a substitute for following the protocol as defined.

Regards,
Graham
--