Application onError doesn't catch missinginclude error

in my Application.cfc I have an onMissingTemplate and an onError Block:

public void function onMissingTemplate(String targetPage){
include “404.cfm”;

public void function onError(Any Exception, String EventName){
include “500.cfm”;

But if I hit
which is a test from Qualys, it renders the default error page from Lucee
showing a missinginclude error, with stracktrace etc.
Lucee Version