Added a proper error code and message
Merge branch 'master' of github.com:setdirection/ios-shared