title: JAX-RS 2.1.1 Response building throwing error
body: <p>Whether I do</p>
  <pre><code>return Response.ok().build();
  </code></pre>
  <p>or</p>
  <pre><code>return Response.status(Response.Status.BAD_REQUEST).entity(msg).build();
  </code></pre>
  <p>its throwing me error:</p>
  <pre><code>java.lang.AbstractMethodError: javax.ws.rs.core.Response$ResponseBuilder.status(ILjava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
  
      at javax.ws.rs.core.Response$ResponseBuilder.status(Response.java:897)
      at javax.ws.rs.core.Response.status(Response.java:568)
      at javax.ws.rs.core.Response.status(Response.java:579)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Goq7D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Goq7D.png" alt="enter image description here" /></a></p>
  <p>Jar is <code>javax.ws.rs-api-2.1.1.jar</code>. I am confused. In the <code>mvn dependency:tree</code> log, I see only three entries of <code>javax.ws.rs</code> with above version. I had earlier excluded this artifact from some other dependencies as they were brining <code>2.0</code>. Please suggest.</p>