HttpStatusCode Sabit listesi
Tanım
HTTP için tanımlanan durum kodlarının değerlerini içerir.Contains the values of status codes defined for HTTP.
public enum class HttpStatusCode
public enum HttpStatusCode
type HttpStatusCode =
Public Enum HttpStatusCode
- Devralma
Alanlar
| Accepted | 202 | HTTP durumu 202 ile eşdeğerdir.Equivalent to HTTP status 202. Acceptedisteğin daha fazla işleme için kabul edildiğini belirtir.Accepted indicates that the request has been accepted for further processing. |
| AlreadyReported | 208 | HTTP durumu 208 ile eşdeğerdir.Equivalent to HTTP status 208. AlreadyReportedbir WebDAV bağlamasının üyelerinin zaten çok durum yanıtının önceki bir bölümünde numaralandırılacağını ve yeniden eklenmediğini belirtir.AlreadyReported indicates that the members of a WebDAV binding have already been enumerated in a preceding part of the multistatus response, and are not being included again. |
| Ambiguous | 300 | HTTP durumu 300 ile eşdeğerdir.Equivalent to HTTP status 300. Ambiguousİstenen bilgilerin birden çok temsili olduğunu gösterir.Ambiguous indicates that the requested information has multiple representations. Varsayılan eylem, bu durumu yeniden yönlendirme olarak değerlendirmek ve bu Yanıtla ilişkili konum üstbilgisinin içeriğini izlemek olur.The default action is to treat this status as a redirect and follow the contents of the Location header associated with this response. |
| BadGateway | 502 | HTTP durumu 502 ile eşdeğerdir.Equivalent to HTTP status 502. BadGatewayara proxy sunucusunun başka bir proxy 'den veya kaynak sunucudan hatalı yanıt aldığını gösterir.BadGateway indicates that an intermediate proxy server received a bad response from another proxy or the origin server. |
| BadRequest | 400 | HTTP durumu 400 ile eşdeğerdir.Equivalent to HTTP status 400. BadRequestisteğin sunucu tarafından anlaşılmadığını gösterir.BadRequest indicates that the request could not be understood by the server. BadRequestbaşka bir hata uygulanamıyorsa veya tam hata bilinmiyorsa veya kendi hata koduna sahip olmadığında gönderilir.BadRequest is sent when no other error is applicable, or if the exact error is unknown or does not have its own error code. |
| Conflict | 409 | HTTP durumu 409 ile eşdeğerdir.Equivalent to HTTP status 409. Conflictsunucudaki bir çakışma nedeniyle isteğin gerçekleştirilemediğini belirtir.Conflict indicates that the request could not be carried out because of a conflict on the server. |
| Continue | 100 | HTTP durumu 100 ile eşdeğerdir.Equivalent to HTTP status 100. Continueistemcinin isteğiyle devam edebileceğini belirtir.Continue indicates that the client can continue with its request. |
| Created | 201 | HTTP durumu 201 ile eşdeğerdir.Equivalent to HTTP status 201. Createdisteğin, yanıt gönderilmeden önce oluşturulan yeni bir kaynak ile sonuçlandığını gösterir.Created indicates that the request resulted in a new resource created before the response was sent. |
| EarlyHints | 103 | HTTP durumu 103 ile eşdeğerdir.Equivalent to HTTP status 103. EarlyHintsistemciye, bilgi yanıtına dahil edilen üst bilgi alanlarıyla son bir yanıt gönderebileceğini istemciye bildirir.EarlyHints indicates to the client that the server is likely to send a final response with the header fields included in the informational response. |
| ExpectationFailed | 417 | HTTP durumu 417 ile eşdeğerdir.Equivalent to HTTP status 417. ExpectationFailedBeklenen üst bilgide verilen bir beklenmesinin sunucu tarafından karşılanamayacağını belirtir.ExpectationFailed indicates that an expectation given in an Expect header could not be met by the server. |
| FailedDependency | 424 | HTTP durumu 424 ile eşdeğerdir.Equivalent to HTTP status 424. FailedDependencyİstenen eylem başka bir eyleme bağımlı olduğundan ve bu eylem başarısız olduğundan, yöntemin kaynak üzerinde gerçekleştirilemediği anlamına gelir.FailedDependency indicates that the method couldn't be performed on the resource because the requested action depended on another action and that action failed. |
| Forbidden | 403 | HTTP durumu 403 ile eşdeğerdir.Equivalent to HTTP status 403. Forbiddensunucunun isteği gerçekleştirmeyi reddeder olduğunu gösterir.Forbidden indicates that the server refuses to fulfill the request. |
| Found | 302 | HTTP durumu 302 ile eşdeğerdir.Equivalent to HTTP status 302. Foundİstenen bilgilerin konum üstbilgisinde belirtilen URI 'de bulunduğunu gösterir.Found indicates that the requested information is located at the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. Özgün istek yöntemi gönderilirken, yeniden yönlendirilen istek GET yöntemini kullanır.When the original request method was POST, the redirected request will use the GET method. |
| GatewayTimeout | 504 | HTTP durumu 504 ile eşdeğerdir.Equivalent to HTTP status 504. GatewayTimeoutbaşka bir proxy 'den veya kaynak sunucudan yanıt beklenirken bir ara sunucu sunucusu zaman aşımına uğradığını gösterir.GatewayTimeout indicates that an intermediate proxy server timed out while waiting for a response from another proxy or the origin server. |
| Gone | 410 | HTTP durumu 410 ile eşdeğerdir.Equivalent to HTTP status 410. Goneistenen kaynağın artık kullanılabilir olmadığını gösterir.Gone indicates that the requested resource is no longer available. |
| HttpVersionNotSupported | 505 | HTTP durumu 505 ile eşdeğerdir.Equivalent to HTTP status 505. HttpVersionNotSupportedistenen HTTP sürümünün sunucu tarafından desteklenmediğini belirtir.HttpVersionNotSupported indicates that the requested HTTP version is not supported by the server. |
| IMUsed | 226 | HTTP durumu 226 ile eşdeğerdir.Equivalent to HTTP status 226. IMUsedsunucunun kaynak için bir istek karşıladığını gösterir ve yanıt, geçerli örneğe uygulanan bir veya daha fazla örnek oluşturma sonucunun bir gösterimidir.IMUsed indicates that the server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance. |
| InsufficientStorage | 507 | HTTP durumu 507 ile eşdeğerdir.Equivalent to HTTP status 507. InsufficientStoragesunucunun isteği tamamlaması için gereken gösterimi depolayamadığını belirtir.InsufficientStorage indicates that the server is unable to store the representation needed to complete the request. |
| InternalServerError | 500 | HTTP durumu 500 ile eşdeğerdir.Equivalent to HTTP status 500. InternalServerErrorsunucuda genel bir hata oluştuğunu gösterir.InternalServerError indicates that a generic error has occurred on the server. |
| LengthRequired | 411 | HTTP durumu 411 ile eşdeğerdir.Equivalent to HTTP status 411. LengthRequiredgerekli Içerik-uzunluk üstbilgisinin eksik olduğunu gösterir.LengthRequired indicates that the required Content-length header is missing. |
| Locked | 423 | HTTP durumu 423 ile eşdeğerdir.Equivalent to HTTP status 423. LockedKaynak veya hedef kaynağın kilitli olduğunu gösterir.Locked indicates that the source or destination resource is locked. |
| LoopDetected | 508 | HTTP durumu 508 ile eşdeğerdir.Equivalent to HTTP status 508. LoopDetectedbir WebDAV isteğini "Depth: Infinity" ile işlerken sonsuz bir döngüyle karşılaştığından sunucunun bir işlemi sonlandırdığını gösterir.LoopDetected indicates that the server terminated an operation because it encountered an infinite loop while processing a WebDAV request with "Depth: infinity". Bu durum kodu, AlreadyReported çok durum yanıt gövdelerinde görünen 208 durum kodunun farkında olmayan istemcilerle geriye dönük uyumluluk için tasarlanmıştır.This status code is meant for backward compatibility with clients not aware of the 208 status code AlreadyReported appearing in multistatus response bodies. |
| MethodNotAllowed | 405 | HTTP durumu 405 ile eşdeğerdir.Equivalent to HTTP status 405. MethodNotAllowedistek yöntemine (POST veya GET) İstenen kaynakta izin verilmediğini belirtir.MethodNotAllowed indicates that the request method (POST or GET) is not allowed on the requested resource. |
| MisdirectedRequest | 421 | HTTP durumu 421 ile eşdeğerdir.Equivalent to HTTP status 421. MisdirectedRequestisteğin yanıt üretemeyen bir sunucuya yönlendirildiğini gösterir.MisdirectedRequest indicates that the request was directed at a server that is not able to produce a response. |
| Moved | 301 | HTTP durumu 301 ile eşdeğerdir.Equivalent to HTTP status 301. Movedİstenen bilgilerin konum üstbilgisinde belirtilen URI 'ye taşındığını gösterir.Moved indicates that the requested information has been moved to the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. Özgün istek yöntemi gönderilirken, yeniden yönlendirilen istek GET yöntemini kullanır.When the original request method was POST, the redirected request will use the GET method. |
| MovedPermanently | 301 | HTTP durumu 301 ile eşdeğerdir.Equivalent to HTTP status 301. MovedPermanentlyİstenen bilgilerin konum üstbilgisinde belirtilen URI 'ye taşındığını gösterir.MovedPermanently indicates that the requested information has been moved to the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. |
| MultipleChoices | 300 | HTTP durumu 300 ile eşdeğerdir.Equivalent to HTTP status 300. MultipleChoicesİstenen bilgilerin birden çok temsili olduğunu gösterir.MultipleChoices indicates that the requested information has multiple representations. Varsayılan eylem, bu durumu yeniden yönlendirme olarak değerlendirmek ve bu Yanıtla ilişkili konum üstbilgisinin içeriğini izlemek olur.The default action is to treat this status as a redirect and follow the contents of the Location header associated with this response. |
| MultiStatus | 207 | HTTP durumu 207 ile eşdeğerdir.Equivalent to HTTP status 207. MultiStatusWeb Dağıtılmış Yazma ve sürüm oluşturma (WebDAV) işlemi sırasında tek bir yanıt için birden çok durum kodu gösterir.MultiStatus indicates multiple status codes for a single response during a Web Distributed Authoring and Versioning (WebDAV) operation. Yanıt gövdesi, durum kodlarını açıklayan XML içerir.The response body contains XML that describes the status codes. |
| NetworkAuthenticationRequired | 511 | HTTP durumu 511 ile eşdeğerdir.Equivalent to HTTP status 511. NetworkAuthenticationRequiredistemcinin ağ erişimi kazanmak için kimlik doğrulaması yapması gerektiğini belirtir; ağa erişimi denetlemek için kullanılan proxy 'leri kesintiye uğratan kullanılmak üzere tasarlanmıştır.NetworkAuthenticationRequired indicates that the client needs to authenticate to gain network access; it's intended for use by intercepting proxies used to control access to the network. |
| NoContent | 204 | HTTP durumu 204 ile eşdeğerdir.Equivalent to HTTP status 204. NoContentisteğin başarıyla işlendiğini ve yanıtın kasıtlı olarak boş olduğunu gösterir.NoContent indicates that the request has been successfully processed and that the response is intentionally blank. |
| NonAuthoritativeInformation | 203 | HTTP durumu 203 ile eşdeğerdir.Equivalent to HTTP status 203. NonAuthoritativeInformationdöndürülen metaınformation, kaynak sunucu yerine önbelleğe alınmış bir kopyadan alındığını ve bu nedenle yanlış olabileceğini gösterir.NonAuthoritativeInformation indicates that the returned metainformation is from a cached copy instead of the origin server and therefore may be incorrect. |
| NotAcceptable | 406 | HTTP durumu 406 ile eşdeğerdir.Equivalent to HTTP status 406. NotAcceptableistemcinin, kaynağın kullanılabilir temsillerine sahip olmayacağını kabul etmeyeceğini kabul etme üst bilgileriyle belirttiği anlamına gelir.NotAcceptable indicates that the client has indicated with Accept headers that it will not accept any of the available representations of the resource. |
| NotExtended | 510 | HTTP durumu 510 ile eşdeğerdir.Equivalent to HTTP status 510. NotExtendedsunucunun bunu yerine getirmek için isteğin daha fazla uzantısının gerekli olduğunu gösterir.NotExtended indicates that further extensions to the request are required for the server to fulfill it. |
| NotFound | 404 | HTTP durumu 404 ile eşdeğerdir.Equivalent to HTTP status 404. NotFoundistenen kaynağın sunucuda yok olduğunu gösterir.NotFound indicates that the requested resource does not exist on the server. |
| NotImplemented | 501 | HTTP durumu 501 ile eşdeğerdir.Equivalent to HTTP status 501. NotImplementedsunucunun istenen işlevi desteklemediğini belirtir.NotImplemented indicates that the server does not support the requested function. |
| NotModified | 304 | HTTP durumu 304 ile eşdeğerdir.Equivalent to HTTP status 304. NotModifiedistemcinin önbelleğe alınmış kopyasının güncel olduğunu gösterir.NotModified indicates that the client's cached copy is up to date. Kaynağın içeriği aktarılmaz.The contents of the resource are not transferred. |
| OK | 200 | HTTP durumu 200 ile eşdeğerdir.Equivalent to HTTP status 200. OKisteğin başarılı olduğunu ve istenen bilgilerin yanıtta olduğunu gösterir.OK indicates that the request succeeded and that the requested information is in the response. Bu, almak için en yaygın durum kodudur.This is the most common status code to receive. |
| PartialContent | 206 | HTTP durumu 206 ile eşdeğerdir.Equivalent to HTTP status 206. PartialContentyanıtın, bir bayt aralığı içeren bir GET isteği tarafından istendiği şekilde kısmi bir yanıt olduğunu gösterir.PartialContent indicates that the response is a partial response as requested by a GET request that includes a byte range. |
| PaymentRequired | 402 | HTTP durumu 402 ile eşdeğerdir.Equivalent to HTTP status 402. PaymentRequiredgelecekte kullanılmak üzere ayrılmıştır.PaymentRequired is reserved for future use. |
| PermanentRedirect | 308 | HTTP durumu 308 ile eşdeğerdir.Equivalent to HTTP status 308. PermanentRedirectistek bilgisinin konum üstbilgisinde belirtilen URI 'de bulunduğunu gösterir.PermanentRedirect indicates that the request information is located at the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. Özgün istek yöntemi gönderilirken, yeniden yönlendirilen istek POST yöntemini de kullanacaktır.When the original request method was POST, the redirected request will also use the POST method. |
| PreconditionFailed | 412 | HTTP durumu 412 ile eşdeğerdir.Equivalent to HTTP status 412. PreconditionFailedBu istek için ayarlanan bir koşulun başarısız olduğunu ve isteğin gerçekleştirilemediğini belirtir. Koşullar, IF-Match, If-None-Match veya IF-değiştirilmemiş-since gibi koşullu istek üstbilgileri ile ayarlanır.PreconditionFailed indicates that a condition set for this request failed, and the request cannot be carried out. Conditions are set with conditional request headers like If-Match, If-None-Match, or If-Unmodified-Since. |
| PreconditionRequired | 428 | HTTP durumu 428 ile eşdeğerdir.Equivalent to HTTP status 428. PreconditionRequiredsunucunun, isteğin koşullu olmasını gerektirdiğini gösterir.PreconditionRequired indicates that the server requires the request to be conditional. |
| Processing | 102 | HTTP durumu 102 ile eşdeğerdir.Equivalent to HTTP status 102. Processingsunucunun tüm isteği kabul ettiğini ancak henüz tamamlanmadığını gösterir.Processing indicates that the server has accepted the complete request but hasn't completed it yet. |
| ProxyAuthenticationRequired | 407 | HTTP durumu 407 ile eşdeğerdir.Equivalent to HTTP status 407. ProxyAuthenticationRequiredistenen proxy 'nin kimlik doğrulaması gerektirdiğini gösterir.ProxyAuthenticationRequired indicates that the requested proxy requires authentication. Proxy-Authenticate üstbilgisi, kimlik doğrulamanın nasıl gerçekleştirileceğini gösteren ayrıntıları içerir.The Proxy-authenticate header contains the details of how to perform the authentication. |
| Redirect | 302 | HTTP durumu 302 ile eşdeğerdir.Equivalent to HTTP status 302. Redirectİstenen bilgilerin konum üstbilgisinde belirtilen URI 'de bulunduğunu gösterir.Redirect indicates that the requested information is located at the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. Özgün istek yöntemi gönderilirken, yeniden yönlendirilen istek GET yöntemini kullanır.When the original request method was POST, the redirected request will use the GET method. |
| RedirectKeepVerb | 307 | HTTP durumu 307 ile eşdeğerdir.Equivalent to HTTP status 307. RedirectKeepVerbistek bilgisinin konum üstbilgisinde belirtilen URI 'de bulunduğunu gösterir.RedirectKeepVerb indicates that the request information is located at the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. Özgün istek yöntemi gönderilirken, yeniden yönlendirilen istek POST yöntemini de kullanacaktır.When the original request method was POST, the redirected request will also use the POST method. |
| RedirectMethod | 303 | HTTP durumu 303 ile eşdeğerdir.Equivalent to HTTP status 303. RedirectMethod, bir POST 'un sonucu olarak istemciyi konum üstbilgisinde belirtilen URI 'ye otomatik olarak yönlendirir.RedirectMethod automatically redirects the client to the URI specified in the Location header as the result of a POST. Konum üst bilgisi tarafından belirtilen kaynağa yapılan istek bir GET ile yapılır.The request to the resource specified by the Location header will be made with a GET. |
| RequestedRangeNotSatisfiable | 416 | HTTP durumu 416 ile eşdeğerdir.Equivalent to HTTP status 416. RequestedRangeNotSatisfiablearalığın başlangıcı kaynağın başlangıcından önce olduğundan veya aralığın sonu kaynağın sonundan sonra olduğundan, kaynaktan istenen veri aralığının döndürülüp döndürülmeyeceğini belirtir, aksi durumda.RequestedRangeNotSatisfiable indicates that the range of data requested from the resource cannot be returned, either because the beginning of the range is before the beginning of the resource, or the end of the range is after the end of the resource. |
| RequestEntityTooLarge | 413 | HTTP durumu 413 ile eşdeğerdir.Equivalent to HTTP status 413. RequestEntityTooLargeisteğin sunucu tarafından işlenmesi için çok büyük olduğunu gösterir.RequestEntityTooLarge indicates that the request is too large for the server to process. |
| RequestHeaderFieldsTooLarge | 431 | HTTP durumu 431 ile eşdeğerdir.Equivalent to HTTP status 431. RequestHeaderFieldsTooLargeüst bilgi alanları (tek bir başlık alanı veya tüm üst bilgi alanları topluca) çok büyük olduğundan sunucunun isteği işlemeye yönelik olduğunu belirtir.RequestHeaderFieldsTooLarge indicates that the server is unwilling to process the request because its header fields (either an individual header field or all the header fields collectively) are too large. |
| RequestTimeout | 408 | HTTP durumu 408 ile eşdeğerdir.Equivalent to HTTP status 408. RequestTimeoutistemcinin, sunucunun isteği beklediği süre içinde bir istek göndermediğini belirtir.RequestTimeout indicates that the client did not send a request within the time the server was expecting the request. |
| RequestUriTooLong | 414 | HTTP durumu 414 ile eşdeğerdir.Equivalent to HTTP status 414. RequestUriTooLongURI 'nin çok uzun olduğunu gösterir.RequestUriTooLong indicates that the URI is too long. |
| ResetContent | 205 | HTTP durumu 205 ile eşdeğerdir.Equivalent to HTTP status 205. ResetContentistemcinin geçerli kaynağı sıfırlaması (yeniden yükleme) gerektiğini gösterir.ResetContent indicates that the client should reset (not reload) the current resource. |
| SeeOther | 303 | HTTP durumu 303 ile eşdeğerdir.Equivalent to HTTP status 303. SeeOther, bir POST 'un sonucu olarak istemciyi konum üstbilgisinde belirtilen URI 'ye otomatik olarak yönlendirir.SeeOther automatically redirects the client to the URI specified in the Location header as the result of a POST. Konum üst bilgisi tarafından belirtilen kaynağa yapılan istek bir GET ile yapılır.The request to the resource specified by the Location header will be made with a GET. |
| ServiceUnavailable | 503 | HTTP durumu 503 ile eşdeğerdir.Equivalent to HTTP status 503. ServiceUnavailablegenellikle yüksek yük veya bakım nedeniyle sunucunun geçici olarak kullanılamadığını belirtir.ServiceUnavailable indicates that the server is temporarily unavailable, usually due to high load or maintenance. |
| SwitchingProtocols | 101 | HTTP durumu 101 ile eşdeğerdir.Equivalent to HTTP status 101. SwitchingProtocolsprotokol sürümünün veya protokolünün değiştirildiğini belirtir.SwitchingProtocols indicates that the protocol version or protocol is being changed. |
| TemporaryRedirect | 307 | HTTP durumu 307 ile eşdeğerdir.Equivalent to HTTP status 307. TemporaryRedirectistek bilgisinin konum üstbilgisinde belirtilen URI 'de bulunduğunu gösterir.TemporaryRedirect indicates that the request information is located at the URI specified in the Location header. Bu durum alındığında varsayılan eylem, Yanıtla ilişkili konum üst bilgisini izlemelidir.The default action when this status is received is to follow the Location header associated with the response. Özgün istek yöntemi gönderilirken, yeniden yönlendirilen istek POST yöntemini de kullanacaktır.When the original request method was POST, the redirected request will also use the POST method. |
| TooManyRequests | 429 | HTTP durumu 429 ile eşdeğerdir.Equivalent to HTTP status 429. TooManyRequestskullanıcının belirli bir süre içinde çok fazla istek gönderdiğini gösterir.TooManyRequests indicates that the user has sent too many requests in a given amount of time. |
| Unauthorized | 401 | HTTP durumu 401 ile eşdeğerdir.Equivalent to HTTP status 401. Unauthorizedistenen kaynağın kimlik doğrulaması gerektirdiğini gösterir.Unauthorized indicates that the requested resource requires authentication. WWW-Authenticate üst bilgisi, kimlik doğrulamasının nasıl gerçekleştirileceği hakkındaki ayrıntıları içerir.The WWW-Authenticate header contains the details of how to perform the authentication. |
| UnavailableForLegalReasons | 451 | HTTP durumu 451 ile eşdeğerdir.Equivalent to HTTP status 451. UnavailableForLegalReasonssunucunun, yasal bir talebin sonucu olarak kaynağa erişimi reddetdiğini belirtir.UnavailableForLegalReasons indicates that the server is denying access to the resource as a consequence of a legal demand. |
| UnprocessableEntity | 422 | HTTP durumu 422 ile eşdeğerdir.Equivalent to HTTP status 422. UnprocessableEntityisteğin doğru biçimlendirildiğini ancak anlam hataları nedeniyle izlenmediğini belirtir.UnprocessableEntity indicates that the request was well-formed but was unable to be followed due to semantic errors. |
| UnsupportedMediaType | 415 | HTTP durumu 415 ile eşdeğerdir.Equivalent to HTTP status 415. UnsupportedMediaTypeisteğin desteklenmeyen bir tür olduğunu gösterir.UnsupportedMediaType indicates that the request is an unsupported type. |
| Unused | 306 | HTTP durumu 306 ile eşdeğerdir.Equivalent to HTTP status 306. Unused, tam olarak belirtilmeyen HTTP/1.1 belirtimine önerilen bir uzantıdır.Unused is a proposed extension to the HTTP/1.1 specification that is not fully specified. |
| UpgradeRequired | 426 | HTTP durumu 426 ile eşdeğerdir.Equivalent to HTTP status 426. UpgradeRequiredistemcinin TLS/1.0 gibi farklı bir protokole geçmesi gerektiğini gösterir.UpgradeRequired indicates that the client should switch to a different protocol such as TLS/1.0. |
| UseProxy | 305 | HTTP durumu 305 ile eşdeğerdir.Equivalent to HTTP status 305. UseProxyisteğin, konum üstbilgisinde belirtilen URI 'de proxy sunucusunu kullanması gerektiğini belirtir.UseProxy indicates that the request should use the proxy server at the URI specified in the Location header. |
| VariantAlsoNegotiates | 506 | HTTP durumu 506 ile eşdeğerdir.Equivalent to HTTP status 506. VariantAlsoNegotiatesSeçilen varyant kaynağının saydam içerik anlaşmasına yönelik olarak yapılandırıldığını ve bu nedenle anlaşma sürecinde uygun bir uç nokta olmadığını gösterir.VariantAlsoNegotiates indicates that the chosen variant resource is configured to engage in transparent content negotiation itself and, therefore, isn't a proper endpoint in the negotiation process. |
Örnekler
Aşağıdaki örnek, bir HttpWebResponse HttpStatusCode yanıtın durumunu öğrenmek için sınıfının bir üyesi ile döndürülen durumu karşılaştırır.The following example compares the status returned by an HttpWebResponse with a member of the HttpStatusCode class to determine the status of a response.
HttpWebRequest^ httpReq = dynamic_cast<HttpWebRequest^>(WebRequest::Create( "http://www.contoso.com" ));
httpReq->AllowAutoRedirect = false;
HttpWebResponse^ httpRes = dynamic_cast<HttpWebResponse^>(httpReq->GetResponse());
if ( httpRes->StatusCode == HttpStatusCode::Moved )
{
// Code for moved resources goes here.
}
// Close the response.
httpRes->Close();
HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create("http://www.contoso.com");
httpReq.AllowAutoRedirect = false;
HttpWebResponse httpRes = (HttpWebResponse)httpReq.GetResponse();
if (httpRes.StatusCode==HttpStatusCode.Moved)
{
// Code for moved resources goes here.
}
// Close the response.
httpRes.Close();
Dim httpReq As HttpWebRequest = CType(WebRequest.Create("http://www.contoso.com"), HttpWebRequest)
httpReq.AllowAutoRedirect = False
Dim httpRes As HttpWebResponse = CType(httpReq.GetResponse(), HttpWebResponse)
If httpRes.StatusCode = HttpStatusCode.Moved Then
' Code for moved resources goes here.
End If
httpRes.Close()
Açıklamalar
HttpStatusCodeSabit listesi, HTTP 1,1 IÇIN RFC 2616 ' de tanımlanan durum kodlarının değerlerini içerir.The HttpStatusCode enumeration contains the values of the status codes defined in RFC 2616 for HTTP 1.1.
HTTP isteğinin durumu, HttpWebResponse.StatusCode özelliğinde bulunur.The status of an HTTP request is contained in the HttpWebResponse.StatusCode property.
HttpWebRequest.AllowAutoRedirectÖzelliği ise false , aşağıdaki numaralandırma değerleri bir özel durumun oluşturulmasına neden olur:If the HttpWebRequest.AllowAutoRedirect property is false, the following enumeration values cause an exception to be thrown:
AmbiguousFoundMultipleChoicesRedirectRedirectKeepVerbRedirectMethodSeeOtherTemporaryRedirect