title: Get status for a PUT request on Jersey client
body: <p>I have a webservice defined with Jersey in the server side like this:</p>
  
  <pre><code>@POST
  @Consumes(MediaType.APPLICATION_XML)
  @Path("/foo")
  public Response bar(List&lt;Foo&gt; listFoo) {    
   try {
          //save the resource
          } catch (Exception e) {
          log.error("Error saving", e);
          return Response.status(Status.INTERNAL_SERVER_ERROR).build();
      }
      return Response.status(Status.OK).build();
  }
  </code></pre>
  
  <p>I am trying to get the server status in my Jersey client like this:</p>
  
  <pre><code>Response response = ws.type(MediaType.APPLICATION_XML).post(Response.class,list);
  </code></pre>
  
  <p>But I get the error:</p>
  
  <pre><code>A message body reader for Java class javax.ws.rs.core.Response, and Java type class javax.ws.rs.core.Response, and MIME media type application/xml was not found javax.ws.rs.core.Response
  </code></pre>
  
  <p>I don't really need the Response object, just the status code, how could I get it?</p>