Hi guys, I have started using Jersey recently, but I have a reasonable
experience with RESTFul web services.
I have a doubt regarding the response status. I'm trying to return an HTTP
200 when the operation goes OK on the server, but when the response body is
empty the status is always set to 204 (No Content).
I tried using Response.status(Response.Status.OK).build(),
Response..ok().status(Response.Status.OK).build() and several other
variations of this, trying to force the status to 200.
If I use Response.ok(object).build() the response status is set to 200.
Can't I return 200 with an empty response body?
--
Regards,
Bruno Luiz Pereira da Silva
blpsilva_at_gmail.com
http://brunopereira.com.br