users@jersey.java.net

Re: [Jersey] HTTP response of void method

From: Zoltan Arnold NAGY <Zoltan.Nagy_at_Sun.COM>
Date: Sun, 10 May 2009 21:14:24 +0200

Felipe Gaúcho wrote:
> in the example below, a DELETE operation runs successfully on the
> server side, it works, but the response is
>
> "HTTP/1.1 204 No Content"
>
> while I was expecting an HTTP 200
>
> otherwise, how the client will know the operation was completed with success?
>
204 is fine, AFAIK. 2xx codes indicate a successful operation.

Zoltan