| Home | Libraries | People | FAQ | More

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

Set the response status-code as an integer.

Synopsis

    void
    result(
        unsigned v);

Description

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.

Parameters

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

Exceptions

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