İstek başlıklarındaki bir koşul karşılanmadı; bu neredeyse her zaman kaynağın mevcut durumunu artık yansıtmayan bir If-Match ETag'i anlamına geliyordu.
Tanımlandığı yer RFC 9110 §15.5.13 — 412 Precondition Failed · MDN referansı
İyimser eşzamanlılık — iki kişi aynı kaydı düzenliyor ve ikinci yazma işlemi, sunucunun çoktan geçtiği bir sürümle geliyor.
İyimser eşzamanlılığın özü. Testlerde hiç 412 görmüyorsanız, istemciniz büyük olasılıkla hiç If-Match göndermiyordur ve kaybolan güncellemeler fark edilmiyordur.
Kaybolan bir güncellemeyi durduran kod budur; bu yüzden onu bir hata değil gerçek bir sonuç olarak ele alın. Kaynağı yeniden çekin, değişikliğin yeni sürüme hâlâ uygulanıp uygulanmadığına karar verin, birleştirin ya da kullanıcıya sorun ve yeni ETag ile yeniden deneyin. Aynı eski doğrulayıcıyla yeniden denemek sonsuza dek aynı 412'yi üretir.
Bu oyun alanında 53 uç nokta 412 ile yanıt veriyor. Hepsi ücretsizdir, kayıt gerektirmez ve tarayıcıdan ya da curl ile çağrılabilir.
PUT https://funapi.dev/api/friends/v1/characters/{id} — Update a character (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ırDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Retire a hero (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ırPUT https://funapi.dev/api/coffee/v1/orders/{id}/ready — Mark an order ready (409 if already ready) (Coffee Shop 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ı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ı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ı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ı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ırPUT https://funapi.dev/api/pokemon/v1/pokemon/{id} — Update a Pokémon (level up, heal, etc.) (Pokémon API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/pokemon/v1/pokemon/{id} — Release a Pokémon (Pokémon API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/middleearth/v1/fellowship/{id} — Update a fellowship member (Middle-earth API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/middleearth/v1/fellowship/{id} — Remove a member from the fellowship (Middle-earth API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/office/v1/employees/{id} — Update an employee (The Office API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/office/v1/employees/{id} — Fire an employee (The Office API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/dinopark/v1/dinosaurs/{id} — Update a dinosaur (Dino Park API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/dinopark/v1/dinosaurs/{id} — Relocate a dinosaur off-site (Dino Park API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/marvel/v1/heroes/{id} — Update a hero (Marvel API) Bu uç noktayı aç ve çalıştırDELETE https://funapi.dev/api/marvel/v1/heroes/{id} — Retire a hero (Marvel API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/got/v1/nobles/{id} — Update a noble (Game of Thrones API) Bu uç noktayı aç ve çalıştır…ve katalog genelinde 28 uç nokta daha.
Tüm HTTP durum kodları · 55 mock REST API’nin tamamı · Başlangıç rehberi
Son güncelleme