Response from AuthenticationEntryPoint is being returned even for internal server errors. It should be 5xx instead of 401