HTTP 508 — Loop Detected
HTTP 508
Loop Detected
The server stopped an operation because it was going round in circles.
What 508 actually means
A WebDAV code for infinite recursion. While walking a collection tree the server found a cycle — a folder that ultimately contains itself through a chain of bindings — and aborted rather than looping forever. It is also occasionally used outside WebDAV for redirect loops and recursive include chains, though those more commonly produce a browser-level error instead.
Common causes
- A WebDAV collection with a binding cycle, found during a `Depth: infinity` traversal
- A symlink loop inside a served directory tree
- Recursive includes or a self-referential configuration
- A redirect loop detected server-side rather than by the browser
If you're just trying to view the page
- Nothing — the server detected and stopped a loop in its own data
- Report it to the site or service owner
If it's your site
- Find the cycle: look for symlinks pointing at their own ancestors, or WebDAV bindings forming a loop
- Track visited resources during traversal and bound the depth as a backstop
- For redirect loops, map out the rules and look for two that undo each other, such as a www rule and an HTTPS rule fighting
Reference
- Status code
- 508
- Reason phrase
- Loop Detected
- Category
- 5xx — Server Error
- Cacheable by default
- No
- Defined in
- RFC 5842 §7.2
Common questions
- What does HTTP 508 mean?
- The server stopped an operation because it was going round in circles. A WebDAV code for infinite recursion. While walking a collection tree the server found a cycle — a folder that ultimately contains itself through a chain of bindings — and aborted rather than looping forever.
- How do I fix a 508 error?
- Nothing — the server detected and stopped a loop in its own data
- Is 508 a client error or a server error?
- 508 is in the 5xx range, which means server error. The request was acceptable but the server could not fulfil it, so retrying later can succeed.
Related pages
- 500 Internal Server Error Something went wrong on the server and it has no more specific code to describe
- 502 Bad Gateway A proxy or gateway reached the server behind it and got back a broken response,
- 503 Service Unavailable The server is temporarily unable to handle the request, usually because it is ov
- 504 Gateway Timeout A proxy or gateway waited for the server behind it and gave up before an answer
- 524 A Timeout Occurred Cloudflare connected to the origin successfully but the origin did not finish re
- 521 Web Server Is Down Cloudflare could not connect to the origin server because it refused the connect
- 522 Connection Timed Out Cloudflare tried to open a connection to the origin server and never got a reply
- 520 Web Server Returned an Unknown Error Cloudflare reached the origin server but got back a response it could not make s
- 525 SSL Handshake Failed The TLS handshake between Cloudflare and the origin server failed.
- 526 Invalid SSL Certificate The origin server presented a TLS certificate that Cloudflare could not validate
- 530 Origin DNS Error A Cloudflare error shown alongside a 1xxx error code that carries the real expla
- 501 Not Implemented The server does not support the functionality needed to fulfil the request, usua