hello,
this URL Return service status · cPanel & WHM Developer Portal show:

then if you run
result is

but if you run
you get

and of course!, TOMCAT is running and enabled.
why this error?
this URL Return service status · cPanel & WHM Developer Portal show:

then if you run
Code:
$query = "https://IP:2087/json-api/servicestatus?api.version=1&service=crond";

but if you run
Code:
$query = "https://IP:2087/json-api/servicestatus?api.version=1&service=tomcat";

and of course!, TOMCAT is running and enabled.
why this error?