title: Jersey Response.ok() not giving 200 OK
body: <p>This is the piece of code that I am using.</p>
  
  <p>The ok(Object items) method is internally calling Jersey's Response.ok() method when items is null.</p>
  
  <pre><code>    MembershipRequestModel membershipRequest = null;
      membershipRequest = communityService.addUserToCommunity(communityId, userId);
      if(membershipRequest != null) {
      // Add code 303 if returning membershiprequest
      return seeOther( membershipRequest, 
                     String.valueOf(membershipRequest.getId()), 
                     MembershipRequestRestHandlerImpl.class);
      } else {
      return ok(null);
  }
  
  public Response ok() {
      return Response.ok().build();
  }
  
  public Response ok(Object items) {
    if ( items == null )
      return ok();
  
    return Response.ok().entity(items).build();
  }
  </code></pre>
  
  <p>But, I am getting the response as 204 No Content which should have actually been 200 OK. I have tried it using RESTClient firefox plugin and cURL command on CentOS.</p>
  
  <p>Please help.</p>
  
  <p>Thanks.</p>