users@jersey.java.net

[Jersey] Empty response body on Error

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Sat, 17 May 2014 10:33:21 -0700

I'm noticing with the Grizzly HTTP container (I can't speak for other
containers) that when my REST call has an error, lets say a 404, on a GET
that the response seems blank.

If I curl with "-i" I can see the 404 but if I put it into a web browser or
just omit the "-i" on curl I see nothing. So it has a response body it is
just empty.

Is this normal or is there something amiss in my configuration?

Thanks!