code: 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());
          }
      }
docs: Dump the Netty {@link HttpResponse} to the SDK {@link com.amazonaws.http.HttpResponse} container.
  
  @param resp Response to adapt.