Revert "Fix bug with error page 404 which didn't work"

This reverts commit cdd90698331f44bbdf38a93758b9837ba877efe5.