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::message::result (3 of 3 overloads)

(Inherited from http::header)

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 result will return status::unknown. Use 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