Continuing the discussion from HEALTCHECK command, curl command and HTTP status codes:
Does the exit code really need to be 1 on failure instead of any non-zero value? Normally any non-zero value indicates failure so I don’t see why this is necessary.