ktor-server-host-common / io.ktor.server.engine / defaultExceptionStatusCode

defaultExceptionStatusCode

fun defaultExceptionStatusCode(cause: Throwable): HttpStatusCode?

Map cause to the corresponding status code or null if no default exception mapping for this cause type