NSURLErrorDomain Error -999 on iOS

Because there is ‘NS’ and ‘Domain’ in the error my best guess was to switch from http to https.
That solved it.
Don’t know if hsts is mandatory. It is now applied at my domain.

A better error message would have been ‘https only’ or similar.