setStatus

fun setStatus(statusCode: <Error class: unknown class>, reasonPhrase: String? = null)(source)

Sets the status code and reason phrase for the @response.

If @status_code is a known value and @reason_phrase is null, the @reason_phrase will be set automatically.

Since

2.36

Parameters

statusCode

the HTTP status code to be returned

reasonPhrase

a reason phrase