# The RpcStatus Class - Google App Engine - Google Code

English ▼
Skip to page content Skip to main navigation
e.g. "templates" or "datastore"

# The RpcStatus Class

#### Experimental!

ProtoRPC is an experimental, innovative, and rapidly changing new feature for App Engine. Unfortunately, being on the bleeding edge means that we may make backwards-incompatible changes to ProtoRPC. We will inform the community when this feature is no longer experimental.

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 is `APPLICATION_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 sets `application_error`.