you should be able to compare those in your error ...
# spicedb
y
you should be able to compare those in your error handling logic