Healthcheck code based on simple api code