# 508 Loop Detected

> The server terminated the operation because it detected an infinite loop.

Source: https://apiguide.dev/status-codes/508
Class: server-error
Defined in: RFC 5842 <https://www.rfc-editor.org/rfc/rfc5842.html>
Updated: 2026-07-09

## What does HTTP status code 508 mean?

The 508 Loop Detected status code (WebDAV, RFC 5842) indicates that the server aborted the operation because it detected an infinite redirection loop.

## When to use it in APIs

Used in WebDAV settings or complex hierarchical resource resolution where links form a loop.

## How it compares to other codes

* **500 Internal Server Error**: A generic server failure, whereas 508 is specifically a loop resolution abort.
