setResponseCode

abstract fun setResponseCode(code: Int)

Records the HTTP status code of the response.