This function returns int with one of the following value:
If the call was successful.
If any error occurs, the type of error indicated by the status value.