read http_retry_count from chef config in the spec; add HTTP error code in the log.