Kimlik doğrulama eksik veya geçersiz. İsmine rağmen, bu izinle değil, kimlikle ilgili; sunucu sizin kim olduğunuzu bilmiyor.
Tanımlandığı yer RFC 9110 §15.5.2 — 401 Unauthorized · MDN referansı
Eksik bir Authorization başlığı, süresi dolmuş bir erişim token'ı, doğrulanmayan bir imza, iptal edilmiş bir oturum.
Eksik başlık durumunu ve geçersiz token durumunu ayrı ayrı test edin. Farklı hatalardır ve farklı yerlerde başarısız olurlar.
401 hatası "authenticate and try again" anlamına gelir; belirteci bir kez yenileyin ve tekrar deneyin, ardından durun. Sürekli devam eden bir yenileme döngüsü, tek bir süresi dolmuş kimlik bilgisinin sürekli bir yük artışına dönüşmesinin nedenidir. Uyumlu bir sunucu, hangi şemayı istediğini belirten bir WWW-Authenticate başlığı gönderir.
Bu oyun alanında 122 uç nokta 401 ile yanıt veriyor. Hepsi ücretsizdir, kayıt gerektirmez ve tarayıcıdan ya da curl ile çağrılabilir.
POST https://funapi.dev/api/friends/v1/characters — Create a character (Friends API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/friends/v1/characters/bulk — Batch-create characters (array body, per-item validation) (Friends API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/friends/v1/characters/{id} — Update a character (Friends API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/friends/v1/characters/bulk-delete — Bulk-delete characters by id (partial success supported) (Friends API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/friends/v1/characters/{id} — Delete a character (Friends API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/superheroes/v1/heroes — Register a new hero (Superhero API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Retire a hero (Superhero API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/superheroes/v1/heroes/versus — Simulate a fight between two heroes (Superhero API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/pizza/v1/orders/{id}/status — Update order status (Pizza Orders API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/football/v1/matches — Simulate a match (Football API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/football/v1/teams/{id} — Remove a team (409 if it has played matches) (Football API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/movies/v1/movies — Add a movie (Movies API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/movies/v1/movies/{id}/rating — Rate a movie (0–10 inclusive) (Movies API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/movies/v1/movies/{id} — Remove a movie (Movies API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/movies/v1/movies/{id}/poster — Upload a movie poster (simulated multipart file upload) (Movies API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/wizarding/v1/students — Enroll a student (Harry Potter API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/wizarding/v1/students/{id} — Update a student (Harry Potter API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/wizarding/v1/students/{id} — Expel a student (Harry Potter API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/galaxy/v1/characters — Add a character (Star Wars API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/galaxy/v1/characters/{id} — Update a character (Star Wars API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/galaxy/v1/characters/{id} — Remove a character (Star Wars API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/holmes/v1/suspects — Add a suspect to a case (Sherlock Holmes API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/holmes/v1/suspects/{id} — Update a suspect (Sherlock Holmes API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/holmes/v1/suspects/{id} — Clear a suspect (Sherlock Holmes API) Bu uç noktayı aç ve çalıştırPATCH https://funapi.dev/api/holmes/v1/cases/{id} — Update a case status (409 if unchanged) (Sherlock Holmes API) Bu uç noktayı aç ve çalıştır…ve katalog genelinde 97 uç nokta daha.
Tüm HTTP durum kodları · 55 mock REST API’nin tamamı · Başlangıç rehberi
Son güncelleme