internal ClientHttpWebResponse(System.Net.HttpWebResponse innerResponse, ClientHttpWebRequest request) { Debug.Assert(innerResponse != null, "innerResponse can't be null."); this.innerResponse = innerResponse; this.request = request; int statusCode = (int)this.innerResponse.StatusCode; if (statusCode > (int)HttpStatusCodeRange.MaxValue || statusCode < (int)HttpStatusCodeRange.MinValue) { throw WebException.CreateInternal("HttpWebResponse.NormalizeResponseStatus"); } }