Skip to content
← All Status Codes
508
Server Error

508 Loop Detected

The server terminated an operation because it encountered an infinite loop (WebDAV).

Definition (RFC 5842)

HTTP status code 508 508 Loop Detected is defined in RFC 5842 (Binding Extensions to WebDAV), not in RFC 9110. RFC 9110 defines the core HTTP status codes; this one was registered separately in the IANA HTTP Status Code Registry.

Description

508 Loop Detected is a WebDAV status code (RFC 5842) indicating that the server terminated an operation because it encountered an infinite loop while processing the request. This can occur with Depth: Infinity requests on WebDAV collections that contain circular references.

Common Causes

  • WebDAV COPY/MOVE with Depth: Infinity on a circular directory structure
  • Recursive server-side includes or templates
  • Circular references in linked data structures processed server-side

How to Fix

  • Remove circular references from the directory or data structure
  • Use Depth: 0 or Depth: 1 instead of Infinity for WebDAV operations
  • Add cycle detection to server-side recursive processing
  • Review the data structure for unexpected circular links

Check your website's HTTP status code

Check now →

Related Status Codes

Automate this check

Set up continuous monitoring and get an alert when something breaks. No manual runs to remember.