function statusCodeFromOutcomes(passed, failed) {
  const anyFailed = failed.length > 0;
  const anyPassed = passed.length > 0;
  if (anyFailed)
    return 500;
  else if (anyPassed)
    return 200;
  else
    return 404;
}
// Respond with 404 if there are no checks to run
Respond with 404 if there are no checks to run
Respond with 404 if there are no checks to run
function statusCodeFromOutcomes(passed, failed) {
  const anyFailed = failed.length > 0;
  const anyPassed = passed.length > 0;
  if (anyFailed)
    return 500;
  else if (anyPassed)
    return 200;
  else
    return 404;
}
function statusCodeFromOutcomes ( passed , failed ) { const anyFailed = failed . length > 0 ; const anyPassed = passed . length > 0 ; if ( anyFailed ) return 500 ; else if ( anyPassed ) return 200 ; else return 404 ; }
Respond with 404 if there are no checks to run
Respond with 404 if there are no checks to run