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.
an HTTP status code
a reason phrase