ProviderCustom Invalid Url Pattern ErrorCode: 2006

I have tried to register the following custom tile server:

http://104.197.118.170/styles/klokantech-basic/{z}/{x}/{y}.png

But when I use the same url in Qgis i receive data tiles.

I try webbrowser and i can receive data.
http://104.197.118.170/styles/klokantech-basic/0/0/0.png

image

What can be?

The Code Delphi:

ans := Map1.Tiles.Providers.Add(providerId, ‘Custom Provider’,‘https://104.197.118.170/styles/klokantech-basic/{z}/{x}/{y}.png’,SphericalMercator, 0, 18,‘openstreet’);
error := Map1.Tiles.Providers.LastErrorCode;
ShowMessage(Map1.Tiles.Providers.ErrorMsg[error]);

/////
ans (False)
error (2006) Invalid URL pattern

Edit: Excuse me
Change
https://104.197.118.170/styles/klokantech-basic/{z}/{x}/{y}.png
by
http://104.197.118.170/styles/klokantech-basic/{zoom}/{x}/{y}.png

and all ok.