The version that comes with the distro is buggy, it returns success
instead of failure for the command:
curl --verbose --fail -L --retry 5 --retry-delay 5 -o filename \
http://url/that/returns/404
The upstream ticket is: https://github.com/curl/curl/issues/17554
Pick-to: 6.11
Change-Id: Ic763c10a308a24c921a8d2ae1f1c651e0cbac429
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>