Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

The RpcStatus Class

Stay organized with collections Save and categorize content based on your preferences.

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

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

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

The RPC completed successfully.
The RPC is still running (not complete)
The request was malformed or incomplete.
The server experienced an unexpected error.
An error occured in the network.
The application is indicating an error. When in this state, the RPC needs automatically sets application_error.