error handling for cloud API errors
Merge pull request #310 from vladmunthiu/develop

error handling for cloud API errors