HTTP 208 Already Reported vs 428 Precondition Required
HTTP 208 (Already Reported) is a 2xx Success response, while 428 (Precondition Required) is a 4xx Client Error response. 208 indicates that used inside a DAV: propstat response element to avoid enumerating internal members of multiple bindings to the same collection repeatedly. In contrast, 428 means that the server requires the request to be conditional (e.g., include If-Match header) to prevent lost updates.
Description
Used inside a DAV: propstat response element to avoid enumerating internal members of multiple bindings to the same collection repeatedly.
When You See It
In WebDAV responses to avoid duplicate listings.
How to Fix
No fix needed. This prevents redundant data in multi-status responses.
Description
The server requires the request to be conditional (e.g., include If-Match header) to prevent lost updates.
When You See It
When an API requires optimistic concurrency control via ETags.
How to Fix
Fetch the resource first to get its ETag, then include If-Match in your update request.
Key Differences
208 is a 2xx Success response, while 428 is a 4xx Client Error response.
HTTP 208: Used inside a DAV: propstat response element to avoid enumerating internal members of multiple bindings to the same collection repeatedly.
HTTP 428: The server requires the request to be conditional (e.g., include If-Match header) to prevent lost updates.
You encounter 208 when in WebDAV responses to avoid duplicate listings.
You encounter 428 when when an API requires optimistic concurrency control via ETags.
When to Use Which
For 208 (Already Reported): No fix needed. This prevents redundant data in multi-status responses. For 428 (Precondition Required): Fetch the resource first to get its ETag, then include If-Match in your update request.