← Back to Kairo Docs|API Reference (Dokka)

statusCode

fun statusCode(statusCode: suspend StatusCodeReceiver<O>.() -> HttpStatusCode?)

Specifies the HTTP status code to use for the response. If this is not provided or returns null, Ktor's default will apply.