title: How to get a status code?
body: <p>I'm a bit new to JAX-RS.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>Client client = ClientBuilder.newClient();
  
  WebTarget resource = client.target("/foo/bar/" + id);
  
  final String xml = resource.request(MediaType.APPLICATION_XML).get(String.class);
  </code></pre>
  
  <p>This is a stupid question, but how exactly could I get the response and it's status code from here?
  The output is a <code>String</code>...</p>