title: How to Wrap Flux<MyObject> in a ResponseEntity
body: <p>I need my endpoint to return data in follow json format:</p>
  
  <pre><code>{
    "code": "SUCCESS",
    "message": "SUCCESS",
    "errors": null,
    "data": []
  }
  </code></pre>
  
  <p>Here is my controller code:</p>
  
  <pre><code>@GetMapping(value = "/productSubcategories", produces = MediaType.APPLICATION_JSON_VALUE)
      public Flux&lt;MyDTO&gt; getMyObjects() {
  
          return myObjectService.getAll()
                  .map(myObject -&gt; modelMapper.map(productSubcategory, MyObject.class));
      }
  </code></pre>
  
  <p>What is the best way to put wrap all the MyDTO objects in the "data" section of json response?</p>