Handle HTTP errors on import