title: Get the status from ClientErrorException
body: <p>About half of the many constructors of <code>ClientErrorException</code> take a <code>Response.Status</code>. But why is there no way of getting it back? Doesn't it have any purpose other than being validated in <code>javax.ws.rs.WebApplicationException#validate(javax.ws.rs.core.Response, javax.ws.rs.core.Response.Status.Family)</code> ?</p>
  
  <p>I thought the way of using it would be extending it</p>
  
  <pre><code>public class WhateverInvalidInRequestException extends ClientErrorException {
  
      public WhateverInvalidInRequestException (String message) {
          super(message, Response.Status.BAD_REQUEST);
      }
  }
  </code></pre>
  
  <p>And then use a single <code>ExceptionMapper</code> for all the subclasses, which is very convenient</p>
  
  <pre><code>@Provider
  public class ClientErrorExceptionMapper implements ExceptionMapper&lt;ClientErrorException&gt; {
  
      @Override
      public Response toResponse(ClientErrorException exception) {
          return Response.status(exception.getStatus()).entity(exception.getMessage()).build();
      }
  }
  </code></pre>
  
  <p>But there is no such a thing as <code>exception.getStatus()</code>.</p>
  
  <p>What am I missing?</p>