HTTP Durum Kodları
Numaraya veya ada göre arayarak bir durum kodunun ne anlama geldiğini ve sunucunun onu ne zaman göndermesi gerektiğini bulun.
- 100ContinueThe request headers were received; the client may send the body. · RFC 9110
- 101Switching ProtocolsThe server agrees to switch to the protocol named in Upgrade. · RFC 9110
- 102ProcessingThe server has accepted the request but has not finished it yet. · RFC 2518
- 103Early HintsPreliminary headers, usually Link, sent before the final response. · RFC 8297
- 200OKThe request succeeded. · RFC 9110
- 201CreatedA new resource was created; Location points to it. · RFC 9110
- 202AcceptedThe request was accepted for processing, but is not complete. · RFC 9110
- 203Non-Authoritative InformationThe response was modified by a proxy. · RFC 9110
- 204No ContentSuccess with no body to return. · RFC 9110
- 205Reset ContentSuccess; the client should reset the document view. · RFC 9110
- 206Partial ContentOnly the requested byte range is returned. · RFC 9110
- 207Multi-StatusWebDAV: multiple status codes in the XML body. · RFC 4918
- 208Already ReportedWebDAV: members were already listed earlier in the response. · RFC 5842
- 226IM UsedThe response is a delta of the resource. · RFC 3229
- 300Multiple ChoicesSeveral representations exist; the client should pick one. · RFC 9110
- 301Moved PermanentlyThe resource has a new permanent URL; search engines update their index. · RFC 9110
- 302FoundTemporary redirect; the method may change to GET. · RFC 9110
- 303See OtherRedirect to another resource with GET, typically after a POST. · RFC 9110
- 304Not ModifiedThe cached copy is still valid; no body is sent. · RFC 9110
- 307Temporary RedirectTemporary redirect that keeps the method and body. · RFC 9110
- 308Permanent RedirectPermanent redirect that keeps the method and body. · RFC 9110
- 400Bad RequestThe request is malformed or invalid. · RFC 9110
- 401UnauthorizedAuthentication is required or failed. · RFC 9110
- 402Payment RequiredReserved; used by some APIs for billing problems. · RFC 9110
- 403ForbiddenThe server understood the request but refuses to authorise it. · RFC 9110
- 404Not FoundNo resource exists at this URL. · RFC 9110
- 405Method Not AllowedThe HTTP method is not supported for this resource. · RFC 9110
- 406Not AcceptableNo representation matches the Accept headers. · RFC 9110
- 407Proxy Authentication RequiredThe client must authenticate with the proxy first. · RFC 9110
- 408Request TimeoutThe server gave up waiting for the request. · RFC 9110
- 409ConflictThe request conflicts with the current state, e.g. an edit collision. · RFC 9110
- 410GoneThe resource was removed permanently. · RFC 9110
- 411Length RequiredContent-Length is missing. · RFC 9110
- 412Precondition FailedAn If-* precondition was not met. · RFC 9110
- 413Content Too LargeThe request body exceeds the server's limit. · RFC 9110
- 414URI Too LongThe URL is longer than the server accepts. · RFC 9110
- 415Unsupported Media TypeThe body format is not supported. · RFC 9110
- 416Range Not SatisfiableThe requested byte range is outside the resource. · RFC 9110
- 417Expectation FailedThe Expect header could not be met. · RFC 9110
- 418I'm a teapotApril Fools' joke from RFC 2324; teapots refuse to brew coffee. · RFC 2324
- 421Misdirected RequestThe request was sent to a server that cannot answer for this origin. · RFC 9110
- 422Unprocessable ContentThe syntax is fine but the content fails validation. · RFC 9110
- 423LockedWebDAV: the resource is locked. · RFC 4918
- 424Failed DependencyWebDAV: an earlier request in the batch failed. · RFC 4918
- 425Too EarlyThe server refuses to risk a replayed request. · RFC 8470
- 426Upgrade RequiredThe client must switch protocols, e.g. to TLS. · RFC 9110
- 428Precondition RequiredThe request must be conditional to avoid lost updates. · RFC 6585
- 429Too Many RequestsRate limit hit; Retry-After says when to try again. · RFC 6585
- 431Request Header Fields Too LargeHeaders are too big, often oversized cookies. · RFC 6585
- 451Unavailable For Legal ReasonsBlocked by a legal demand, such as a court order. · RFC 7725
- 500Internal Server ErrorThe server hit an unexpected error. · RFC 9110
- 501Not ImplementedThe server does not support the request method. · RFC 9110
- 502Bad GatewayAn upstream server returned an invalid response. · RFC 9110
- 503Service UnavailableThe server is overloaded or down for maintenance. · RFC 9110
- 504Gateway TimeoutAn upstream server did not answer in time. · RFC 9110
- 505HTTP Version Not SupportedThe HTTP version in the request is not supported. · RFC 9110
- 506Variant Also NegotiatesContent negotiation is misconfigured on the server. · RFC 2295
- 507Insufficient StorageWebDAV: the server is out of space. · RFC 4918
- 508Loop DetectedWebDAV: infinite loop while processing. · RFC 5842
- 510Not ExtendedFurther extensions are required. · RFC 2774
- 511Network Authentication RequiredA captive portal requires login before network access. · RFC 6585
Bu araç hakkında
Her HTTP yanıtı üç haneli bir durum koduyla başlar. İlk hane sınıfı verir: 1xx bilgilendirme, 2xx başarı, 3xx yönlendirme, 4xx istemci hatası, 5xx sunucu hatası. Doğru kodu bilmek SEO için (301 mi 302 mi, arama motorlarının dizini güncelleyip güncellemeyeceğini belirler), API tasarımı için (422 mi 400 mü, 401 mi 403 mü) ve hata ayıklama için (502 ve 504 üst kaynağı, 503 aşırı yükü işaret eder) önemlidir.
Bu liste, güncel HTTP anlambilim belirtimi olan RFC 9110'u ve WebDAV, hız sınırlama ile hukuki engelleme RFC'lerindeki kayıtlı kodları temel alır. Her kayıtta kodun ne ilettiğine dair tek satırlık bir açıklama ve onu tanımlayan RFC bulunur.
Sık sorulan sorular
- 401 ile 403 arasındaki fark ne?
- 401 kimliğinizin doğrulanmadığı anlamına gelir: giriş yapıp tekrar deneyin. 403 ise kim olduğunuzun bilindiği ama izninizin olmadığı anlamına gelir; tekrar giriş yapmak işe yaramaz.
- Kalıcı yönlendirme için 301 mi 308 mi?
- İkisi de kalıcıdır. 308 yöntemin ve gövdenin korunacağını garanti eder; 301'i istemciler GET'e çevirebilir.
- 418 gerçek mi?
- 1 Nisan şakası olarak yazılmış bir RFC'den gelir ve HTTP standardının parçası değildir, ama birçok sunucu eğlence olsun diye uygular.