handleFailure

suspend fun handleFailure(call: ApplicationCall, error: Throwable)

Logs the error and responds with an appropriate error status code.