HTTP 508 — Loop Detected
The server detected an infinite loop while processing the request
When to use it
Use status 508 when this is the correct HTTP response semantic: The server detected an infinite loop while processing the request
Request and response example
GET /service HTTP/1.1
Host: api.example.com
HTTP/1.1 508 Loop Detected
Content-Type: application/json
{"error":"Service failed to process the request"}