absl::StatusBuilder::code

Returns the (canonical) error code for the Status created by this builder.

Synopsis

Declared in <absl/status/status_builder.h>

absl::StatusCode
code() const;

Return Value

The canonical status code of the result status.