set_status


Description:

public void set_status (uint status_code, string? reason_phrase)

Sets this'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:

this

a ServerMessage

status_code

an HTTP status code

reason_phrase

a reason phrase