throw http 404 exception if the handler didn't match a rule