code: public void updateResponse() {
          // TODO: update logging
          setStatus(httpResp.getStatusLine().getStatusCode());
          setStatusLine(httpResp.getStatusLine().toString());
          setHeaders(httpResp.getAllHeaders());
          final HttpEntity entity = httpResp.getEntity();
          if (entity != null) {
              try {
                  contentBytes = EntityUtils.toByteArray(entity);
              } catch (IOException e) {
                  contentBytes = new byte[0]; // empty byte array
                  e.printStackTrace();
              }
              ContentType contentType = ContentType.getOrDefault(entity);
              setContentType(contentType);
              setContentLength(entity.getContentLength());
          }
          if(debug)
              System.err.println(this);
  
      }
docs: update Response object from given http response