feat(rights): reworked error handling in rights