More logging
Now throws exception on unknown RequestCode