412

Precondition Failed

Description

The client has indicated preconditions in its headers which the server does not meet. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended.

HTTP Status Codes Details

Status Code
412
Status Name
Precondition Failed
Class
4xx
Common Usage
No

Common Scenarios

  • Client request errors
  • Authentication issues

Handling Recommendations

  • Validate client input
  • Provide clear error messages

Was this helpful?

Loading...

Send Feedback

Found an error or have a suggestion? We respond within 48 hours.

Fact-checking completed

Verified by: Pavel Volkov
Created:
Last updated:
Information verified against official sources

Official Sources

Internet Engineering Task Force RFCs

Official HTTP status codes specification (RFC 7231)

Internet standards organization defining HTTP protocols

Mozilla Developer Network

Comprehensive HTTP status codes documentation

Authoritative web development documentation

Internet Assigned Numbers Authority

Official HTTP status code registry

Internet protocol parameters authority