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 a snapshot of the master branch, built from commit 0d0642aa30.
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 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