diff --git a/zio-http/shared/src/main/scala/zio/http/endpoint/internal/EndpointClient.scala b/zio-http/shared/src/main/scala/zio/http/endpoint/internal/EndpointClient.scala index 5e6f1cf6f7..e728d90b4d 100644 --- a/zio-http/shared/src/main/scala/zio/http/endpoint/internal/EndpointClient.scala +++ b/zio-http/shared/src/main/scala/zio/http/endpoint/internal/EndpointClient.scala @@ -22,12 +22,11 @@ import zio.stacktracer.TracingImplicits.disableAutoTrace import zio.http._ import zio.http.codec._ import zio.http.endpoint._ -import zio.http.Status._ private[endpoint] final case class EndpointClient[P, I, E, O, M <: EndpointMiddleware]( endpointRoot: URL, endpoint: Endpoint[P, I, E, O, M], - codecMapping: Map[Int, Codec[Any, Throwable, E]], + codecMapping: Map[Int, Codec[Response, Throwable, E]] ) { def execute(client: Client, invocation: Invocation[P, I, E, O, M])( mi: invocation.middleware.In,