Check the appropriate device user manual and check the notes on general status codes as well as status codes specific to the function you called. Use the status_string(code) function to receive a human readable string corresponding to the integer code.
I received a status code (return value less than 0) from a device's API function. What does it mean?