status

fun status(code: HttpStatusCode): StatusCode(source)

Sets the success response status code of the endpoint


inline fun <T : OpenAPIRoute<T>> T.status(code: HttpStatusCode, crossinline fn: T.() -> Unit)(source)
inline fun <T : OpenAPIRoute<T>> T.status(code: Int, crossinline fn: T.() -> Unit)(source)

Sets the success response status code of the endpoints defined in the block