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

isForbidden

open fun isForbidden(): ResultMatcher

Assert the response status code is HttpStatus.FORBIDDEN (403).