401 instead of 403 with Spring Boot 2
Heads up By default Spring Boot 2 will return 401 when spring-boot-starter-security is added as a dependency and an unauthorized request is performed. This may change if you place some custom configurations to modify the security mechanism behavior. If that’s the case and you truly need to force the 401 status, then read the below … Read more