HAProxy community

Need more info on Termination state codes "CD" and "CC"


I am using HAProxy version 1.8.8.

I’m observing status code of “503” with termination codes as “CD” and “CC” for some requests. HAProxy logs show that the backend is selected (there are several backend servers in configuration) and also the total http time is less than server timeout and also client timeout.

I understand CC and CD would happen when the client closes the connection. However, the reason for seeing 503 in logs is not clear. Could someone please list the scenarios when this can happen ?