Proper method to update icons, return http codes from server. Fixes #3