https://github.com/nginx/nginx/blob/master/src/http/modules/ngx_http_degradation_module.c