HTTP 207 Multi-Status vs 304 Not Modified
HTTP 207 (Multi-Status) is a 2xx Success response, while 304 (Not Modified) is a 3xx Redirection response. 207 indicates that the response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV). In contrast, 304 means that the resource has not been modified since the last request. The client can use its cached copy.
Description
The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
When You See It
In WebDAV operations that affect multiple resources simultaneously.
How to Fix
Parse the XML body to check the status of each individual resource.
Description
The resource has not been modified since the last request. The client can use its cached copy.
When You See It
When the browser cache is still valid (If-None-Match / If-Modified-Since headers match).
How to Fix
No fix needed. This saves bandwidth by confirming the cached version is still current.
Key Differences
207 is a 2xx Success response, while 304 is a 3xx Redirection response.
HTTP 207: The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
HTTP 304: The resource has not been modified since the last request. The client can use its cached copy.
You encounter 207 when in WebDAV operations that affect multiple resources simultaneously.
You encounter 304 when when the browser cache is still valid (If-None-Match / If-Modified-Since headers match).
When to Use Which
For 207 (Multi-Status): Parse the XML body to check the status of each individual resource. For 304 (Not Modified): No fix needed. This saves bandwidth by confirming the cached version is still current.