title: Is this the correct way to return 204 "No Content" using Spring?
body: <p>I'm trying to delete a resource setting http status <strong>NO_CONTENT</strong> using Weblogic and the response takes 30 seconds to complete. Am i misusing Spring or is there a bug in Weblogic?</p>
  
  <p>I've tried this on Weblogic 12.2.1.0.0 using Spring 5.0.12. The request is completed, the resource is removed but the client waits for 30 seconds (browser TTFB) after that. This seems to be a kind of timeout. </p>
  
  <p>As a workaround, we could return http status <strong>OK</strong>. </p>
  
  <pre class="lang-java prettyprint-override"><code>@DeleteMapping(value = "/{id}")
  public ResponseEntity&lt;Void&gt; delete(@PathVariable("id") Long id) {
      useCase.remove(id);
      return new ResponseEntity&lt;&gt;(HttpStatus.NO_CONTENT);
  }
  </code></pre>
  
  <p>I expected the client to immediately receive the response, but it waits 30 seconds.</p>