Unified some error codes
Added error message to inform about nonavailability for ncvars