Return error code if spec data is not readable