Perfect, thank you for pointing to this documentation. Exactly what I was looking for.
I assume I can get to those individual codes in golang using the following code
s, ok := status.FromError(err)
switch s.Code() {
case codes.Aborted:
...
}
where status and codes are grpc packages based on the datastore/client.go code