508 Loop Detected

HTTP 508 Loop Detected is a 5xx server error status. The WebDAV server found an infinite loop while processing the request.

508Status code
5xxServer error
NoCacheable by default
RFC 5842Defined in

Common causes

What to do

Specific to WebDAV.

Example response

HTTP/1.1 508 Loop Detected
Content-Type: application/problem+json

{"status":508,"title":"Loop Detected"}

Returning 508 in code

Express   res.status(508).json({ … });
Flask     return jsonify(…), 508
PHP       http_response_code(508);
Go        w.WriteHeader(508)
nginx     return 508;

Other 5xx codes

Frequently asked questions

What does HTTP 508 mean?
The WebDAV server found an infinite loop while processing the request.
Is 508 an error?
Yes. It is a server error: the request may be fine and the problem lies on the server or an upstream service.
Does a 508 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.