spring-framework / org.springframework.test.web.client.response / MockRestResponseCreators / withUnauthorizedRequest

withUnauthorizedRequest

open static fun withUnauthorizedRequest(): DefaultResponseCreator

ResponseCreator for a 401 response (UNAUTHORIZED).