private void dumpToSdkHttpResponse(HttpResponse resp) {
        errorResponse.setStatusCode(resp.status().code());
        errorResponse.setStatusText(resp.status().reasonPhrase());
        for (Map.Entry<String, String> header : resp.headers().entries()) {
            errorResponse.addHeader(header.getKey(), header.getValue());
        }
    }
Dump the Netty {@link HttpResponse} to the SDK {@link com.amazonaws.http.HttpResponse} container.

@param resp Response to adapt.
aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/internal/netty/handler/ErrorUnmarshallingHandler.java