RPCError forgot to parse error-type + added to_dict() with all err fields for convenience