Better error handling for get requests
Better error handling