title: How to return completely empty response in Spring
body: <p>I have a Spring MVC Rest controller with one of the URL mappings being :</p>
  
  <pre><code>myhost:8080/helloworldexample/testnullresponse
  </code></pre>
  
  <p>Now, is it possible to return nothing at all when I call this URL </p>
  
  <p>Nothing means: no body, no response, no status code simply nothing at all, almost like the server listening to the request did not do anything. </p>
  
  <p>I would appreciate any help on this. I have tried the following options but nothing worked:</p>
  
  <pre><code> return new ResponseEntity&lt;Void&gt;(null);
  </code></pre>
  
  <h2>AND</h2>
  
  <pre><code>    @RequestMapping(value = "/helloworldexample/testnullresponse", produces = "application/json; charset=UTF-8", method = RequestMethod.GET)
    public void nullResponse(HttpServletRequest request) {
          }
  </code></pre>