Add better error handling with user-facing messages when something goes wrong accessing the REST APIs.