Python 2.7 has reached end of supportand will bedeprecatedon January 31, 2026. After deprecation, you won't be able to deploy Python 2.7applications, even if your organization previously used an organization policy tore-enable deployments of legacy runtimes. Your existing Python2.7 applications will continue to run and receive traffic after theirdeprecation date. We recommend thatyoumigrate to the latest supported version of Python.

The RpcStatus Class

The RpcStatus class provides the status of an on-going or complete RPC via the following fields:

state
The State of the RPC.
error_name
The Error name set by the application. Only set when the status isAPPLICATION_ERROR. Used by the application to transmit the specific reason for an error.
error_message
The error message associated with the RPC status.

The RpcStatus class provides a subclass, State, an Enum of possible RPC states:

OK
The RPC completed successfully.
RUNNING
The RPC is still running (not complete)
REQUEST_ERROR
The request was malformed or incomplete.
SERVER_ERROR
The server experienced an unexpected error.
NETWORK_ERROR
An error occured in the network.
APPLICATION_ERROR
The application is indicating an error. When in this state, the RPC needs automatically setsapplication_error.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.