404 alert middleware