title: Setting a Jersey response status code from interface without returning Response
body: <p>I am trying to set a response status of the following Jersey REST endpoint</p>
  
  <pre><code>@Path("/roles")
  public interface IRoleService {
  
      @POST
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces(MediaType.APPLICATION_JSON)
      Role create(Role role);
  
  }
  </code></pre>
  
  <p>Since it creates a new resource it would be appropriate if it returned Status code 201 but currently it returns 200.</p>
  
  <p>The only way I found how to set the status code is to have the method return a <code>javax.ws.rs.core.Response</code> and set it there, but I really do not want all of my interfaces to return a generic Response instead of the actual response object (in this case <code>Role</code>).</p>