title: Return Needed in Filter After HttpServletResponse.sendError
body: <p>I've seen some some posts that say a return is needed after the repsonse.sendError in a Servlet Filter, is it needed?  If so, why?</p>
  
  <pre><code>public class AuthorizationSecurityFilter extends OncePerRequestFilter {
       protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {
      boolean isAuth = //call to authenticate request
      if (isAuth) {
        chain.doFilter(request, response);
      } else {
        response.sendError(HttpServletResponse.SC_NOT_FOUND);
        return; //this needed?
      }
  }
  
  }
  </code></pre>