spring-framework / org.springframework.web.servlet.config.annotation / ViewControllerRegistration / setStatusCode

setStatusCode

open fun setStatusCode(statusCode: HttpStatus): ViewControllerRegistration

Set the status code to set on the response. Optional.

If not set the response status will be 200 (OK).