pub fn parse_error_payload(payload: &[u8]) -> RpcError
Helper to parse an error from a response payload.