508 Loop Detected

The server found an infinite loop while processing the request and stopped.

Last updated . How this page is checked.

Status code508
Status textLoop Detected
Category5xx Server Error
Response has bodyUsually
SpecificationRFC 5842

What does 508 Loop Detected mean?

The server found an infinite loop while processing the request and stopped. It belongs to the 5xx Server Error class, which means the server failed to fulfil an apparently valid request. The problem is on the server side.

When do APIs return 508?

In WebDAV, when a request with Depth: infinity walks a collection that contains a binding back to one of its own ancestors. Separately, some shared-hosting platforms show a page titled “508 Resource Limit Is Reached” when an account exceeds its CPU, memory or process allowance, which has nothing to do with the WebDAV meaning.

How to fix a 508 Loop Detected

For WebDAV, remove the circular binding or request a limited depth. For the hosting-platform page, the account has hit a resource cap: check its usage graphs for the script or traffic spike responsible, and optimise, cache or move to a larger plan.

Reproduce a 508 response

The fastest way to understand a status code is to trigger one and read the full response. Open the API tester and send a request to https://httpbin.org/status/508 — you will see the 508 status along with every response header the server sent. Comparing those headers against a working request is often what reveals the cause.

When you are debugging a real endpoint, check the response headers as carefully as the body, and confirm you are using the right HTTP method for the operation.

Related 5xx status codes

See also

References