Process the common result codes.
Bunch of wrapper stuff.