title: Return ResponseEntity vs returning POJO
body: <p>My application is based on Spring Boot with some REST endpoints. Is there any difference between below return statements?</p>
  
  <ul>
  <li><p><code>return new ResponseEntity&lt;MyBean&gt;(myBean, HttpStatus.OK)</code> </p></li>
  <li><p><code>return myBean;</code></p></li>
  </ul>
  
  <p>Is there any best practice guidelines or any technical difference?</p>