508Status code
5xxServer error
NoCacheable by default
RFC 5842Defined in
Common causes
- Bindings that point back to themselves
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;