Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
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.


PrevUpHomeNext