code412PreconditionFailed constant

HttpStatus const code412PreconditionFailed

An alias representing the preconditionFailed constant, offering a direct substitute for it.

For consistency and improved readability, it is recommended to directly use preconditionFailed where possible.

412 PRECONDITION FAILED.

One or more conditions given in the request header fields evaluated to false when tested on the server.

This response code allows the client to place preconditions on the current resource state (its current representations and metadata) and, thus, prevent the request method from being applied if the target resource is in an unexpected state.

Implementation

static const HttpStatus code412PreconditionFailed = preconditionFailed;