url: Fix incorrect variable type for result code