support for error handling in RG API