Are there any error codes while working with the rest API?

In order to catch errors, I need to know which code corresponds to which error. Can someone provide a list of error codes?

Please see:
https://grpc.github.io/grpc/core/md_doc_statuscodes.html

This is how these are mapped: