title: Spring Security Webflux/Reactive Exception Handling
body: <p>I'm building app on spring webflux, and i'm stuck because spring security webflux (v.M5) did not behave like Spring 4 in term of exception handling.</p>
  
  <p>I saw following post about how to customise spring security webflux:
  <a href="https://stackoverflow.com/questions/47354171/spring-webflux-custom-authentication-for-api">Spring webflux custom authentication for API</a></p>
  
  <p>If we throw exception let say in ServerSecurityContextRepository.load, Spring will update http header to 500 and nothing i can do to manipulate this exception.</p>
  
  <p>However, any error thrown in controller can be handled using regular @ControllerAdvice, it just spring webflux security.</p>
  
  <p>Is there anyway to handle exception in spring webflux security?</p>