convert get_data function to return json and update error handling to catch code 400/500 errors returned.
convert get_data function to return json and update error handling to catch code 400/500 errors returned.

gdherbert/DataPillager