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

isBadRequest

open fun isBadRequest(): ResultMatcher

Assert the response status code is HttpStatus.BAD_REQUEST (400).