code: func handleError(response *restful.Response, request string, err error) {
  	switch err {
  	case kubecontainer.ErrContainerNotFound:
  		response.WriteError(http.StatusNotFound, err)
  	default:
  		msg := fmt.Sprintf("Internal Error: %v", err)
  		klog.Errorf("HTTP InternalServerError serving %s: %s", request, msg)
  		response.WriteErrorString(http.StatusInternalServerError, msg)
  	}
  }
docs: // handleError serializes an error object into an HTTP response.
  // request is provided for logging.