Centralize error parsing for get requests.