sup has a module for sttp:

libraryDependencies += "com.kubukoz" %% "sup-sttp" % "0.6.0"

Imports:

import sup._, sup.modules.sttp._

What’s included

statusCodeHealthCheck

There’s a way to build a healthcheck out of a request and a backend:

import com.softwaremill.sttp.{sttp => request, _}, cats.implicits._, cats.effect._
// import com.softwaremill.sttp.{sttp=>request, _}
// import cats.implicits._
// import cats.effect._

implicit def backend: SttpBackend[IO, Any] = ???
// backend: com.softwaremill.sttp.SttpBackend[cats.effect.IO,Any]

def check: HealthCheck[IO, Id] =
  statusCodeHealthCheck[IO, String](request.get(uri"https://google.com"))
// check: sup.HealthCheck[cats.effect.IO,com.softwaremill.sttp.Id]