title: Spring @ResponseStatus returns empty response
body: <p>In my Spring API I wanted to handle responses from operations like create, put and delete with Spring's annotation  <strong>@ResponseStatus</strong>. Every endpoint works correctly but they always return empty response. </p>
  
  <p>Why response from annotated endpoints is empty?</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>import org.springframework.web.bind.annotation.ResponseStatus;
  import org.springframework.http.HttpStatus;
  
  @RestController
  @RequestMapping(value = "/v1/portfolios")
  public class PortfolioController {
  
      @RequestMapping(method = RequestMethod.POST)
      @ResponseStatus(HttpStatus.CREATED)
      public void create(@RequestBody Portfolio resource) {
          repo.save(resource);
      }   
  
      @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
      @ResponseStatus(HttpStatus.OK)
      public void delete(@PathVariable("id") String id) {
          repo.removeById(id);
      }
  
  }
  </code></pre>