vertx / io.vertx.reactivex.core.http / HttpServerResponse / setStatusCode

setStatusCode

open fun setStatusCode(statusCode: Int): HttpServerResponse

Set the status code. If the status message hasn't been explicitly set, a default status message corresponding to the code will be looked-up and used.

Parameters

statusCode -

Return
a reference to this, so the API can be used fluently