HTTP 508 Loop Detected
The server detected an infinite loop while processing the request.
5xx Server Error
508
Loop Detected
Description
The 508 Loop Detected status code indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity". This status indicates that the entire operation failed. This is part of the WebDAV specification and typically occurs when a PROPFIND, COPY, or MOVE operation encounters a symbolic link or binding that creates a circular reference in the resource hierarchy.
When Is It Used?
Encountered in WebDAV operations with depth-infinity traversals when the server detects a circular reference in the resource hierarchy. Can also be used in non-WebDAV contexts when a server detects an infinite loop in request processing, such as recursive redirects.
Example Response
HTTP/1.1 508 Loop Detected
Content-Type: application/json
{"error": "loop_detected", "message": "An infinite loop was detected while processing this request"}