Back to all status codes

412

Precondition Failed

Client Error
RFC 7232

The server does not meet one of the preconditions that the requester put on the request.

Detailed Information

The 412 status code indicates that the server does not meet one of the preconditions that the requester put on the request.

Common Examples

  • API requests with missing If-Match header
  • Form submissions with missing If-Unmodified-Since header

Common Uses

  • API requests with missing If-Match header
  • Form submissions with missing If-Unmodified-Since header

Best Practices

  • Use when the request preconditions are not met
  • Include appropriate precondition headers
  • Ensure proper resource versioning and conflict resolution mechanisms are in place

Quick Actions

Category Information

Client Error

The request contains bad syntax or cannot be fulfilled

Available for Freelance

Fullstack developer specializing in React, Next.js, and Node.js. Let's build something amazing together!

Stay in the loop

Get notified about new tools and updates

HTTP Status Codes Reference - Complete List with Descriptions