How can i tell if a doc operation was successfully?

I am wondering if i use the SDK like NodeJS and i do basic DOC Insert, Upsert and Deletes what is the best way to tell if the operation was successful ? In N1Ql i get some Meta Data which tells me that but with the SDK you either get an error or you get a CAS value in the response. Is it save to assume if i get no error and the server returned a CAS value that the operation was successful ? I just want to make sure i check for all conditions in my code