class StyxToNettyResponseTranslator implements ResponseTranslator {

    public HttpResponse toNettyResponse(LiveHttpResponse httpResponse) {
        io.netty.handler.codec.http.HttpVersion version = toNettyVersion(httpResponse.version());
        HttpResponseStatus httpResponseStatus = HttpResponseStatus.valueOf(httpResponse.status().code());

        DefaultHttpResponse nettyResponse = new DefaultHttpResponse(version, httpResponseStatus, true);

        httpResponse.headers().forEach(httpHeader ->
                nettyResponse.headers().add(httpHeader.name(), httpHeader.value()));

        return nettyResponse;
    }

}