statusCode
mach::Reply::statusCode
Returns the reply’s HTTP status code.
Description
Section titled “Description”Returns the reply’s HTTP status code.
Syntax
Section titled “Syntax”[[nodiscard]] http::StatusCode statusCode() const noexcept;Return Value
Section titled “Return Value”The reply’s HTTP status code.
Exceptions
Section titled “Exceptions”This function is noexcept and does not throw exceptions.
Thread Safety
Section titled “Thread Safety”This function is thread-safe.
Example
Section titled “Example”auto status = reply.statusCode();See Also
Section titled “See Also”| Name | Description |
|---|---|
value |
Returns the reply body. |
hasValue |
Indicates whether the reply contains a body. |