diff --git a/lib/resty/coraza/coraza.lua b/lib/resty/coraza/coraza.lua index 500986a..ce0f3cd 100644 --- a/lib/resty/coraza/coraza.lua +++ b/lib/resty/coraza/coraza.lua @@ -228,6 +228,9 @@ function _M.intervention(transaction) local status_code = tonumber(intervention.status) --free intervention to avoid memory leak coraza.coraza_free_intervention(intervention) + if status_code == 0 then + status_code = 403 + end nlog(debug_fmt("Transaction %s disrupted with status %s action %s", ngx_ctx.request_id, status_code, action)) return action, status_code