Could someone explain the different error codes returned by OpenDoc6?

I use the OpenDoc6 function to open files in my app. The function accepts parameters for errors and warnings. How do I interpret the codes it passes back? The error values I see most are 0 and 2. For warnings, I see the values 2 or 3.

SolidworksApi/macros