added checks for response code from API calls (things like setters)