Nouplo

HTTP Durum Kodları

Sayının anlamı ve onu ne zaman göndereceğiniz.

Örnekler girdiyi ve ayarları geçici olarak değiştirir. Önceki çalışmanızı geri yükleyebilirsiniz.

0 karakter
kod
38
Çıktı
1xx  bilgi — istek alındı, iş sürüyor
2xx  başarılı — işe yaradı
3xx  yönlendirme — başka yere bakın
4xx  istek hatalı — istemci çoğu zaman düzeltebilir
5xx  sunucu hatalı — istemci yalnızca yeniden deneyebilir

100  Continue (Devam)
     Carry on sending the body; the headers were acceptable.
101  Switching Protocols (Protokol değişimi)
     Agreed — usually the handshake into a WebSocket.
200  OK (Tamam)
     It worked, and the body is the answer.
201  Created (Oluşturuldu)
     It worked and something new exists; Location says where.
202  Accepted (Kabul edildi)
     Taken in, not done yet. Nothing promises it will succeed.
204  No Content (İçerik yok)
     It worked and there is deliberately nothing to send back.
206  Partial Content (Kısmi içerik)
     Here is the range you asked for — how video seeking works.
301  Moved Permanently (Kalıcı olarak taşındı)
     Use the new address from now on; search engines move their index.
302  Found (Bulundu, şimdilik başka yerde)
     Temporarily elsewhere. Keep using this address.
303  See Other (Başka adrese bakın)
     Done — now GET that other address. The answer to a form POST.
304  Not Modified (Değişmedi)
     Your copy is current; nothing is sent. The point of caching.
307  Temporary Redirect (Geçici yönlendirme)
     Like 302 but the method must not change.
308  Permanent Redirect (Kalıcı yönlendirme)
     Like 301 but the method must not change.
400  Bad Request (Hatalı istek)
     The request itself is malformed. Not the same as invalid data.
401  Unauthorized (Kimlik doğrulanmadı)
     Not authenticated. Misnamed: it means “who are you?”.
402  Payment Required (Ödeme gerekli)
     Reserved for years, now used by some APIs for quota and billing.
403  Forbidden (Yasak)
     Authenticated and still not allowed. “I know who you are; no.”
404  Not Found (Bulunamadı)
     Nothing here, and nothing said about whether there ever was.
405  Method Not Allowed (Yönteme izin verilmiyor)
     The address exists; that verb does not work on it.
406  Not Acceptable (Kabul edilemez)
     Nothing can be produced that matches the Accept header.
408  Request Timeout (İstek zaman aşımı)
     The client took too long to send it.
409  Conflict (Çakışma)
     It clashes with the current state — an edit against a stale version.
410  Gone (Kaldırıldı)
     It was here and is deliberately gone. Stronger than 404.
413  Payload Too Large (İstek çok büyük)
     The body is bigger than the server will take.
415  Unsupported Media Type (Desteklenmeyen ortam türü)
     The Content-Type is not one this endpoint reads.
418  I'm a teapot (Ben bir çaydanlığım)
     A 1998 April Fools joke, in the standard, still implemented for fun.
422  Unprocessable Content (İşlenemeyen içerik)
     Well formed, but the data fails validation. The one people want when they reach for 400.
425  Too Early (Çok erken)
     Refusing a replayable request sent in TLS early data.
428  Precondition Required (Ön koşul gerekli)
     Send an If-Match so you do not overwrite somebody blindly.
429  Too Many Requests (Çok fazla istek)
     Rate limited. Retry-After says how long to wait.
431  Request Header Fields Too Large (Başlık alanları çok büyük)
     Usually one enormous cookie.
451  Unavailable For Legal Reasons (Yasal nedenlerle erişilemiyor)
     Blocked by law. The number is a Fahrenheit 451 joke.
500  Internal Server Error (Sunucu iç hatası)
     Something threw. The catch-all, and a sign nothing more specific was chosen.
501  Not Implemented (Uygulanmadı)
     The server does not support that method at all.
502  Bad Gateway (Hatalı ağ geçidi)
     A proxy got nonsense from upstream. Usually the app behind it is down.
503  Service Unavailable (Hizmet kullanılamıyor)
     Temporarily down or overloaded; Retry-After may say when.
504  Gateway Timeout (Ağ geçidi zaman aşımı)
     A proxy waited for upstream and gave up.
507  Insufficient Storage (Yetersiz depolama)
     No room to hold what was sent.

Dosyalarınız cihazınızda kalır

Bu araç tamamen tarayıcınızda çalışır. Yapıştırdığınız içerik cihazınızda işlenir ve asla bir sunucuya gönderilmez; bu yüzden token'lar, anahtarlar ve yayımlanmamış metinlerle güvenle kullanabilirsiniz.

Örnek

Uygulamalı örnek — HTTP Durum Kodları

Girdi satırlarını sırayla girip aşağıdaki ayarları kullanın. Sonucu çıktı satırlarıyla karşılaştırın.

Öğe Değer
Girdi 1 404
Çıktı 1 404 Not Found (Bulunamadı)
Çıktı 2 Nothing here, and nothing said about whether there ever was.
Çıktı 3 410 Gone (Kaldırıldı)
Çıktı 4 It was here and is deliberately gone. Stronger than 404.

404, Not Found anlamına gelir. Açıklaması 404 ile karşılaştırma yaptığı için 410 da görünebilir. Hiçbir URL’ye istek gönderilmez.

Nasıl çalışır

  1. Sınıflara göre gruplanmış tüm liste için kutuyu boş bırakın.
  2. Tek bir kod için bir sayı yazın.
  3. Bütün bir sınıf için 4xx yazın.
  4. Aradığınızı bulmak için “önbellek” ya da “yönlendirme” gibi bir sözcük yazın.

Sık sorulan sorular

401 ile 403 arasındaki fark ne?
401 “kim olduğunuzu bilmiyorum” demektir — kimlik doğrulayıp yeniden deneyin. 403 ise “kim olduğunuzu biliyorum, ve hayır” demektir. 401 kötü adlandırılmıştır: adı Unauthorized’dır ama kimliği doğrulanmamış anlamına gelir; sürekli karıştırılmasının sebebi de budur.
400 mü kullanmalıyım, 422 mi?
400, biçimi bozuk bir istek içindir — kırık JSON, eksik bir başlık. 422 ise sorunsuz ayrıştırılan ve içeriği doğrulamadan geçemeyen bir istek içindir; çoğu kişi 400’e uzanırken aslında bunu kasteder.
418 nedir?
1998’den kalma bir 1 Nisan şakası; gerçek bir RFC’de yer alır, hâlâ uygulanır ve zaman zaman ciddi biçimde kaldırılması önerilir. Sunucunun bir çaydanlık olduğu anlamına gelir.
Hangi yönlendirmeyi kullanmalıyım?
Adres kalıcı olarak değiştiyse ve arama motorlarının dizinlerini taşımasını istiyorsanız 301; geçiciyse 302. Yöntemin POST’tan GET’e dönmemesi gerekiyorsa 308 ve 307 kullanın — bütün fark budur.
Bir sunucuya bir şey gönderiliyor mu?
Hayır. Tarayıcıda çalışır; yazdığınız şey bilgisayarınızda kalır.

İlgili araçlar