77 references to StatusCode
PresentationCore (1)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
603
if (webResponse.
StatusCode
== HttpStatusCode.PartialContent)
System (35)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (24)
234
if (ctx.RequestRangeCache && resp.
StatusCode
== HttpStatusCode.RequestedRangeNotSatisfiable) {
242
if (resp.
StatusCode
== HttpStatusCode.NotModified)
316
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_resp_status, resp.
StatusCode
));
357
if (resp.
StatusCode
== HttpStatusCode.NotModified || ctx.RequestMethod == HttpMethod.Head)
380
else if (resp.
StatusCode
== HttpStatusCode.PartialContent)
416
ctx.CacheStatusCode = resp.
StatusCode
;
683
if(resp.
StatusCode
== HttpStatusCode.NotModified) {
842
if (resp.
StatusCode
== HttpStatusCode.NotModified ||
843
resp.
StatusCode
== HttpStatusCode.OK ||
844
resp.
StatusCode
== HttpStatusCode.NonAuthoritativeInformation ||
845
resp.
StatusCode
== HttpStatusCode.PartialContent ||
846
resp.
StatusCode
== HttpStatusCode.MultipleChoices ||
847
resp.
StatusCode
== HttpStatusCode.MovedPermanently ||
848
resp.
StatusCode
== HttpStatusCode.Gone)
850
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_valid_based_on_status_code, (int)resp.
StatusCode
));
865
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_resp_no_cache_control, (int)resp.
StatusCode
));
1046
if ((ctx.CacheStream == Stream.Null || (int)ctx.CacheStatusCode == 0) && resp.
StatusCode
== HttpStatusCode.NotModified) {
1075
if (resp.
StatusCode
!= HttpStatusCode.NotModified && resp.Headers.LastModified != ctx.CacheHeaders.LastModified)
1087
if (resp.
StatusCode
== HttpStatusCode.PartialContent) {
1123
ctx.CacheStatusCode = resp.
StatusCode
;
1169
if (resp.
StatusCode
== HttpStatusCode.NotModified) {
1771
if (ctx.CacheHeaders == null || (resp.
StatusCode
!= HttpStatusCode.NotModified && resp.
StatusCode
!= HttpStatusCode.PartialContent))
1831
if (resp.
StatusCode
== HttpStatusCode.NotModified && AsciiLettersNoCaseEqual(key, HttpKnownHeaderNames.ContentLength)) {
net\System\Net\Cache\HttpRequestCacheValidator.cs (5)
354
if (resp.
StatusCode
>= HttpStatusCode.InternalServerError) {
422
if(Logging.On) Logging.PrintInfo(Logging.RequestCache, "StatusCode=" + ((int)resp.
StatusCode
).ToString(CultureInfo.InvariantCulture) + ' ' +resp.
StatusCode
.ToString() +
423
(resp.
StatusCode
== HttpStatusCode.PartialContent
779
if ((forCache? CacheStatusCode: resp.
StatusCode
) != HttpStatusCode.PartialContent) {
net\System\Net\FtpWebRequest.cs (1)
2235
result = (int)httpWebResponse.
StatusCode
;
net\System\Net\FtpWebResponse.cs (1)
183
return ((FtpStatusCode) ((int) m_HttpWebResponse.
StatusCode
));
net\System\Net\HttpWebRequest.cs (2)
870
return _HttpResponse.
StatusCode
;
6310
result = (int)httpWebResponse.
StatusCode
;
net\System\Net\WebSockets\ClientWebSocket.cs (2)
263
if (response.
StatusCode
!= HttpStatusCode.SwitchingProtocols)
266
(int)response.
StatusCode
));
System.Data.Services.Client (15)
System\Data\Services\Client\DataServiceContext.cs (9)
4942
if (WebUtil.SuccessStatusCode(response.
StatusCode
))
4957
if (!WebUtil.SuccessStatusCode(response.
StatusCode
))
4979
else if (response.
StatusCode
== HttpStatusCode.Created)
4990
WriteOperationResponseHeaders(this.buildBatchWriter, (int)response.
StatusCode
);
5281
if ((null == this.batchResponse) || (HttpStatusCode.NoContent == this.batchResponse.
StatusCode
))
5288
this.batchResponse.
StatusCode
, // statusCode
5300
inner = GetResponseText(this.batchResponse.GetResponseStream, this.batchResponse.
StatusCode
);
5311
this.DataServiceResponse = new DataServiceResponse(headers, (int)this.batchResponse.
StatusCode
, this.Responses, true /*batchResponse*/);
5366
int statusCode = this.batchResponse == null ? (int)HttpStatusCode.InternalServerError : (int)this.batchResponse.
StatusCode
;
System\Data\Services\Client\GetReadStreamResult.cs (2)
150
if (!WebUtil.SuccessStatusCode(this.response.
StatusCode
))
152
failure = DataServiceContext.GetResponseText(this.response.GetResponseStream, this.response.
StatusCode
);
System\Data\Services\Client\QueryResult.cs (4)
292
response.StatusCode = (int)this.httpWebResponse.
StatusCode
;
311
response.StatusCode = (int)this.httpWebResponse.
StatusCode
;
442
this.statusCode = response.
StatusCode
;
571
if (HttpStatusCode.NoContent != response.
StatusCode
)
System.Runtime.Remoting (1)
channels\http\httpclientchannel.cs (1)
524
int statusCode = (int)(response.
StatusCode
);
System.ServiceModel (19)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (4)
208
if (webResponse.
StatusCode
== HttpStatusCode.BadRequest)
224
else if (webResponse.
StatusCode
== HttpStatusCode.UpgradeRequired)
432
if (response.
StatusCode
!= HttpStatusCode.SwitchingProtocols)
437
SR.WebSocketUpgradeFailedError, (int)response.
StatusCode
, response.StatusDescription, (int)HttpStatusCode.SwitchingProtocols, HttpStatusCode.SwitchingProtocols))));
System\ServiceModel\Channels\HttpChannelHelpers.cs (15)
887
responseProperty.StatusCode = httpWebResponse.
StatusCode
;
3523
if (response.
StatusCode
== HttpStatusCode.NotFound)
3528
if (response.
StatusCode
== HttpStatusCode.ServiceUnavailable)
3533
if (response.
StatusCode
== HttpStatusCode.UnsupportedMediaType)
3546
if (response.
StatusCode
== HttpStatusCode.GatewayTimeout)
3554
if (response.
StatusCode
== HttpStatusCode.BadRequest)
3611
if (response.
StatusCode
== HttpStatusCode.InternalServerError &&
3718
statusDescription = response.
StatusCode
.ToString();
3722
(int)response.
StatusCode
, statusDescription), responseException));
3780
if (response.
StatusCode
== HttpStatusCode.Unauthorized)
3788
if (response.
StatusCode
== HttpStatusCode.Forbidden)
3833
if ((200 <= (int)response.
StatusCode
&& (int)response.
StatusCode
< 300) || response.
StatusCode
== HttpStatusCode.InternalServerError)
3835
if (response.
StatusCode
== HttpStatusCode.InternalServerError
System.Web.Extensions (1)
ClientServices\Providers\ProxyHelper.cs (1)
95
throw new WebException(String.Format(CultureInfo.CurrentCulture, AtlasWeb.ProxyHelper_BadStatusCode, response.
StatusCode
.ToString(), GetResponseString(response)), we);
System.Web.Services (5)
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (1)
253
if (httpResponse.
StatusCode
!= HttpStatusCode.OK) {
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
330
if (httpResponse != null && (int)httpResponse.
StatusCode
>= 300)
System\Web\Services\Protocols\RequestResponse.cs (1)
131
int statusCode = (int)httpResponse.
StatusCode
;
System\Web\Services\Protocols\SoapClientProtocol.cs (2)
596
int statusCode = httpResponse != null ? (int)httpResponse.
StatusCode
: -1;
610
if (method.oneWay && (httpResponse == null || (int)httpResponse.
StatusCode
!= 500)) {