Use negative values for error codes