MOD throw an error if the submit function was called with an invalid requestCode.