do not run request/response middlewares for 404 requests