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.
Beschreibung
The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
Wann Sie es sehen
In WebDAV operations that affect multiple resources simultaneously.
Wie man es behebt
Parse the XML body to check the status of each individual resource.
Beschreibung
The resource has not been modified since the last request. The client can use its cached copy.
Wann Sie es sehen
When the browser cache is still valid (If-None-Match / If-Modified-Since headers match).
Wie man es behebt
No fix needed. This saves bandwidth by confirming the cached version is still current.
Wesentliche Unterschiede
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).
Wann welchen verwenden
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.