Sets the result value for a successful response.
Sets the error value for a failure response.
Returns true if this is a successful response.
Returns true if this is a failure response.
Returns the ID of the request this response corresponds to, if known.
Returns the result envelope if this is a successful response.
Returns the error envelope if this is a failure response.
Converts the response to an envelope.
Interface that defines the behavior of a response.