Class PreconditionRequired

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.BasicRuntimeException
org.apache.juneau.http.response.BasicHttpException
org.apache.juneau.http.response.PreconditionRequired
All Implemented Interfaces:
Serializable, HttpMessage, HttpResponse

@Response @StatusCode(428) @Schema(description="Precondition Required") public class PreconditionRequired extends BasicHttpException
Exception representing an HTTP 428 (Precondition Required).

The origin server requires the request to be conditional.
Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.

See Also: