Fixed copy/paste error
First version of the middleware with custom 404.html template