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::to_status_class (1 of 2 overloads)

Convert an integer to a status_class.

Synopsis

Defined in header <boost/beast/http/status.hpp>

status_class
to_status_class(
    unsigned v);
Description
Parameters

Name

Description

v

The integer representing a status code.

Return Value

The status class. If the integer does not match a known status class, http::unknown is returned.

Convenience header <boost/beast/http.hpp>


PrevUpHomeNext