Earlier quoted context omitted.
You could always update the UI on the assumption that it will succeed, and then check the return value. If you get failure, notify the user somehow. Making the UI seem a slight bit more responsive might not be really worth it, of course.
UI latency is actually very important, and generally under-appreciated. Sometimes, it's better to be fast than perfect.
I guess if one was really concerned, you could update the UI immediately like News.YC does, and then change it back or show an error if it does happen to come back failed.