title: Purpose of throwing exception by Spring controller function
body: <p>I have come across few Spring contoller's function, which are throwing IOException. </p>
  
  <pre><code>@RequestMapping(method = ***)
  @ResponseBody
  public List&lt;Offering&gt; getOfferingDetailsList(HttpServletResponse response, @PathVariable("productIds") String productIdString, HttpServletRequest request) throws IOException
  </code></pre>
  
  <p>I doubt about use of such exception throwing, when no one above is catching and handling it.<br><br> Is it fine to set response status like "response.setStatus(HttpStatus.SC_NOT_FOUND)" in place of throwing such exception ? <br>What is the standard way of handling exception in controller ? </p>