corazawaf / coraza-caddy

OWASP Coraza middleware for Caddy. It provides Web Application Firewall capabilities
https://www.coraza.io/
Apache License 2.0
314 stars 38 forks source link

Pass error details to PHP #162

Open Simbiat opened 1 month ago

Simbiat commented 1 month ago

Is it possible to somehow pass the error details to PHP, when request is interrupted by Coraza? I hoped that {http.err.message} would have something, but it seems to show only generic interruption triggered. I have custom error pages generated by PHP, and I want to customize them if it's Coraza that interrupts request. I was not able to find anything in documentation or anything obvious in code.