title: Jersey Response.seeOther() not giving HTTP 303 status code
body: <p>I have a social networking site in which we have a restricted community.</p>
  
  <p>When a guest user applies requests for membership, a membership request is generated. I am performing this task through a REST API.</p>
  
  <p>I am using <strong>RESTClient plugin</strong> in firefox to send requests.</p>
  
  <p>When I send a POST resquest for adding self to the restricted community, the response is the memebership request generated for the same. Hence, the underlying HTTP status code is <code>303 See Other POST/GET</code>.</p>
  
  <p>I get proper response for the same with the membership request in response but the status code is <code>200 OK</code>(which I think is the code for the GET on the membership request).</p>
  
  <p>But, I need the same to be 303. I have <em>tried debugging also</em>. My finding is that the Jersey <code>Response.seeOther()</code> is not returning 303.</p>
  
  <p>Please help.</p>
  
  <p>The code snippets are as follows :</p>
  
  <p>addUserToCommunity method :</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);
  }
  
  seeOther method which in turn calls Response.seeOther() :
  
  public Response seeOther(Object model, String id, Class&lt;?&gt; resource){
  
    URI location = buildLocation(resource, id);
  
    return Response.seeOther(location).entity(createResponseItems(model)).build();
  }
  </code></pre>