Failure and verification
05Invalid syntax, unsupported formats, conflicts, and failed preconditions have different responses.
After a lost response, inspect state rather than blindly replaying a non-idempotent patch.
Key idea: 400 can indicate malformed patch syntax; 415 an unsupported patch format.
Rules & examples
400 can indicate malformed patch syntax; 415 an unsupported patch format.
- 400 can indicate malformed patch syntax; 415 an unsupported patch format.
- 409 can indicate a conflict and 412 a failed explicit precondition.
- If a response is lost, GET can help inspect current state; authorize changes and protect their transport.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.