title: springboot : how to return error status code in prehandle of HandlerInterceptor
body: <p>I am using <code>HandlerInterceptor</code> in Spring Boot for processing common types of requests.
  But while executing <code>preHandle</code>, I want to return error status code to user if conditions are not met.
  If i throw the exception inside <code>preHandle</code> the response will have all the exception stack.
  How to send custom body as response with response code from preHandle</p>