title: how to handle 400,404,500,501 etc in spring?
body: <p>How to handle 400,404,500,501 etc in a <code>BaseController</code> which can be extend by all child controllers in spring.</p>
  
  <p>I need an example on this.</p>