| Home | Libraries | People | FAQ | More

###### http::message::result (3 of 3 overloads)

(Inherited from `http::header`)

Set the response status-code as an integer.

<h7> Synopsis </h7>

    void
    result(
        unsigned v);

<h7> Description </h7>

This sets the status code to the exact number passed in. If the number does not correspond to one of the known status codes, the function `http::header::result` will return `http::unknown`. Use `http::header::result_int` to obtain the original raw status-code.

<h7> Parameters </h7>

Name | Description
--- | ---
`v` | The status-code integer to set.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`std::invalid_argument` | if `v > 999`.