Properly raise url errors