handle empty and error responses in get legislator requests