title: Jersey returns 404 with any error status code?
body: <p>I have this useless endpoint in path "/test":</p>
  
  <pre><code>@PUT
  public Response doSomething() {
    return Response.status(409).build();
  }
  </code></pre>
  
  <p>and I test it this way:</p>
  
  <pre><code>@Test
  public void uselessTest() {
    put("/test").then().assertThat().statusCode(409);
  }
  </code></pre>
  
  <p>But I get an assertion error:</p>
  
  <blockquote>
    <p>Expected status code &lt;409> doesn't match actual status code &lt;404>.</p>
  </blockquote>
  
  <p>This happens in more codes: 400, 500... apart from 200.</p>
  
  <p>I'm using Spring Boot. If I put a breakpoint in my endpoint method when I run the test, execution stops there, so the request in the test is done properly. If I change the status code (in resource and in the test, too) to 200, test passes.</p>
  
  <p>What is happening?</p>