[TASK] refactor ripple-rest error formats to include error attribute