setStatus

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

Sets @msg's status code to @status_code.

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

Parameters

statusCode

an HTTP status code

reasonPhrase

a reason phrase