diff --git a/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala b/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala index 74c1d947..0f96e64f 100644 --- a/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala +++ b/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala @@ -81,7 +81,7 @@ private[smithy4play] class SmithyPlayClientEndpoint[Op[_, _, _, _, _], I, E, O, .map(o => HttpResponse(response.statusCode, headers, o)) .leftMap { case error: PayloadError => - SmithyPlayClientEndpointErrorResponse(error.expected.getBytes(), response.statusCode) + SmithyPlayClientEndpointErrorResponse(error.toString().getBytes(), response.statusCode) case error: MetadataError => SmithyPlayClientEndpointErrorResponse(error.getMessage().getBytes(), response.statusCode) }