spring-framework / org.springframework.test.web.servlet.result / StatusResultMatchers / isUnauthorized

isUnauthorized

open fun isUnauthorized(): ResultMatcher

Assert the response status code is HttpStatus.UNAUTHORIZED (401).