Back to HTTP Check Tool
4xx · Client Error

412Precondition Failed

请求头中的前置条件评估为 false。

What is HTTP 412?

412 Precondition Failed 表示服务器在请求头中评估前置条件时结果为 false。常与 If-Match、If-Unmodified-Since 等头配合使用,用于并发控制。

Example

PUT with If-Match: "old-etag" but server has "new-etag" → 412

Check a URL in real-time

Use our HTTP ping tool to check the actual status code of any URL.

Try httping.io →

Common Use Cases

  • ETag 不匹配(乐观并发)
  • 条件更新失败
  • 分布式锁冲突

Quick Facts

Code412
Category4xx
TypeClient Error

Related 4xx Codes