boost::http_proto::route_result

The result type returned by a route handler.

Synopsis

using route_result = system::error_code;

Description

Route handlers use this type to report errors that prevent normal processing. A handler must never return a non‐failing (i.e. ec.failed() == false) value. Returning a default‐constructed system::error_code is disallowed; handlers that complete successfully must instead return a valid route result.

Created with MrDocs