Hey Jim, I think there isn't a standard on that, and generally I'd say the
right thing to do depends on the context. If the request is
filtering/searching over a collection and the result of that filter is an
empty list, it would be valid to return an empty list. An example would be
a social network search request that returns all your friends whose name
begins with the letter Z. An empty list would be a valid response to a
valid request. However, if you request the list of contacts of a profile
that doesn't exist or you're not authorized to query an error status would
be appropriate to return, so the user can understand that it's not an empty
result but some other error occurred. Hope it makes sense!

-Nadav

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to