spring-framework / org.springframework.web.servlet.handler / SimpleMappingExceptionResolver / addStatusCode

addStatusCode

open fun addStatusCode(viewName: String, statusCode: Int): Unit

An alternative to #setStatusCodes(Properties) for use with Java-based configuration.