Developer Tools

HTTP 508 Loop Detected

5xx Server Error. The server detected an infinite loop while processing the request (WebDAV).

Runs in your browser. Your files and text never leave your device - nothing is uploaded.

5xx Server Error

What it means

The server detected an infinite loop while processing the request (WebDAV).

PropertyDetail
Status class5xx Server Error
Defined inRFC 5842, Section 7.2 — RFC 5842 is an Experimental RFC that defines WebDAV bindings, which let one resource appear at several paths.
Cacheable by defaultOnly with explicit caching headers: a cache stores it when the response carries Cache-Control (max-age, s-maxage or public) or Expires.
Who needs to actThe server or hosting account owner.

What does HTTP 508 Loop Detected mean?

HTTP 508 Loop Detected means the server stopped an operation because it found an infinite loop while processing a WebDAV request with Depth: infinity, and the whole operation failed. It is defined by RFC 5842 for WebDAV bindings. Some shared hosts also show 508 when an account exceeds its resource limits, a different, non-standard use.

How 508 Loop Detected works

WebDAV bindings let the same collection appear at more than one path, so a collection can end up containing a binding to itself or to one of its parents. A PROPFIND, COPY or similar request with Depth: infinity would then walk the tree forever. RFC 5842 lets the server detect this and fail the whole operation with 508. On ordinary websites, a 508 is far more likely to come from shared hosting: hosts running CloudLinux show '508 Resource Limit Is Reached' when an account exceeds its CPU, memory or concurrent-process limits. That message has nothing to do with WebDAV.

Example 508 request and response

PROPFIND /shared/ HTTP/1.1
Host: dav.example.com
Depth: infinity

HTTP/1.1 508 Loop Detected
Content-Type: application/xml

A binding inside /shared/ points back to an ancestor, so a full-depth listing would never end. The server stops and reports the loop.

What causes a 508 Loop Detected

  • A WebDAV collection containing a binding to itself or an ancestor, traversed with Depth: infinity.
  • Shared hosting accounts hitting their entry-process, CPU or memory limits, shown as '508 Resource Limit Is Reached'.
  • Traffic spikes, aggressive bots or slow scripts holding many processes open on a small hosting plan.

How to fix a 508 Loop Detected

If you use WebDAV

  • Request a limited depth, such as Depth: 1, and walk the tree level by level.
  • Find and remove bindings that point back to a parent collection.

If your host shows '508 Resource Limit Is Reached'

  • Open your hosting panel's resource usage page to see which limit was hit.
  • Block abusive bots, enable page caching, and fix slow plugins or scripts that hold processes open.
  • Upgrade the plan if legitimate traffic needs more concurrent processes.

Related status codes

Frequently asked questions

Sources

Other 5xx Server Error codes

Reviewed by Raja Jahangir · Last reviewed: October 7, 2026