2using System.ComponentModel;
17 [Description(
"An internal server error occurred!")]
23 [Description(
"API version mismatch!")]
29 [Description(
"The request body was malformed!")]
30 ModelValidationFailure,
35 [Description(
"An IO error occurred during the operation!")]
41 [Description(
"A header validation error occurred!")]
47 [Description(
"Cannot generate a bearer token using a bearer token!")]
53 [Description(
"The operation could not be performed as it would violate database integrity. Please retry the request, making sure to not duplicate field names with existing entities!")]
54 DatabaseIntegrityConflict,
59 [Description(
"Functionality is unavailable due to a missing host watchdog component! This should NOT be seen in a production environment!")]
65 [Description($
"Cannot downgrade to {Constants.CanonicalPackageName} major version <4!")]
66 CannotChangeServerSuite,
71 [Description(
"A required remote API request returned an error!")]
77 [Description(
"A server update was requested while another was in progress!")]
78 ServerUpdateInProgress,
83 [Description(
"Can only change the capitalization of a user's name!")]
89 [Description(
"Cannot change a user's systemIdentifier!")]
95 [Description(
"A user cannot have both a name and systemIdentifier!")]
101 [Description(
"A user cannot have both a password and systemIdentifier!")]
102 UserMismatchPasswordSid,
107 [Description(
"The given password is less than the server's configured minimum password length!")]
113 [Description(
"User names cannot contain the ':' character!")]
119 [Description(
"User's name is missing or invalid whitespace!")]
125 [Description(
"Cannot relocate an instance while it is online!")]
126 InstanceRelocateOnline,
131 [Description(
"The instance cannot be placed at the given path because it is not empty!")]
132 InstanceAtExistingPath,
137 [Description(
"Cannot detach an instance while it is online!")]
138 InstanceDetachOnline,
143 [Description(
"The instance cannot be placed at the given path because it is a child of an existing instance or the server installation directory!")]
144 InstanceAtConflictingPath,
149 [Description(
"The instance cannot be created because the configured limit has been reached!")]
150 InstanceLimitReached,
155 [Description(
"Instance names and paths cannot be whitespace!")]
156 InstanceWhitespaceNameOrPath,
161 [Description(
"The request path requires the 'Instance' header to be set!")]
162 InstanceHeaderRequired,
167 [Description(
"This operation requires POSIX system identities to be implemented. See https://github.com/tgstation/tgstation-server/issues/709 for details.")]
168 RequiresPosixSystemIdentity,
173 [Description(
"This existing file hash does not match, the file has beeen updated!")]
174 ConfigurationFileUpdated,
179 [Description(
"The directory cannot be deleted because it is not empty!")]
180 ConfigurationDirectoryNotEmpty,
185 [Description(
"The server swarm has less than the expected amount of nodes!")]
186 SwarmIntegrityCheckFailed,
191 [Description(
"Either both accessUser and accessToken must be set or neither!")]
192 RepoMismatchUserAndAccessToken,
197 [Description(
"The repository is busy being cloned!")]
203 [Description(
"The repository is busy with another operation!")]
209 [Description(
"The repository already exists!")]
215 [Description(
"The repository does not exist and must be cloned!")]
221 [Description(
"Cannot checkoutSha and set reference at the same time!")]
222 RepoMismatchShaAndReference,
227 [Description(
"Cannot checkoutSha and updateFromOrigin at the same time!")]
228 RepoMismatchShaAndUpdate,
233 [Description(
"Could not delete engine version due to it being selected as the instance's active version.")]
234 EngineCannotDeleteActiveVersion,
239 [Description(
"The same test merge was present more than once or is already merged!")]
240 RepoDuplicateTestMerge,
245 [Description(
"committerName cannot be whitespace!")]
246 RepoWhitespaceCommitterName,
251 [Description(
"committerEmail cannot be whitespace!")]
252 RepoWhitespaceCommitterEmail,
257 [Description(
"Requested pageSize is too large!")]
263 [Description(
"Cannot request page or pageSize <= 0.")]
264 ApiInvalidPageOrPageSize,
269 [Description(
"One or more of the channels for one or more of the provided chat bots do not have the correct channel data for their provider!")]
270 ChatBotWrongChannelType,
275 [Description(
"A chat bot's connection string cannot be whitespace!")]
276 ChatBotWhitespaceConnectionString,
281 [Description(
"A chat bot's name cannot be whitespace!")]
282 ChatBotWhitespaceName,
287 [Description(
"Missing chat bot provider!")]
288 ChatBotProviderMissing,
293 [Description(
"IO operation could not start contended access to the instance's configuration directory!")]
294 ConfigurationContendedAccess,
299 [Description(
"Performing this operation would violate the instance's configured chatBotLimit!")]
305 [Description(
"Set amount of chatChannels exceeds the configured channelLimit!")]
311 [Description(
"Unable to start DirectX installer process! Is the server running with admin privileges?")]
312 ByondDirectXInstallFail,
317 [Description(
"Error downloading specified engine version!")]
323 [Description(
"Could not acquire lock on engine installation as none exist!")]
324 EngineNoVersionsInstalled,
329 [Description(
"DMAPI validation failed! See FAQ at https://github.com/tgstation/tgstation-server/discussions/1695")]
330 DeploymentNeverValidated,
335 [Description(
"The DMAPI sent an invalid validation request!")]
336 DeploymentInvalidValidation,
341 [Description(
"This user is passwordless and removing their oAuthConnections would leave them with no authentication method!")]
342 CannotRemoveLastAuthenticationOption,
347 [Description(
"No .dme configured and could not automatically detect one!")]
353 [Description(
"Could not load configured .dme!")]
354 DeploymentMissingDme,
359 [Description(
"Compiler exited with a non-zero exit code!")]
365 [Description(
"There is already a deployment operation in progress!")]
366 DeploymentInProgress,
371 [Description(
"Could not retrieve DreamDaemon settings from the database!")]
372 InstanceMissingDreamDaemonSettings,
377 [Description(
"Could not retrieve DreamMaker settings from the database!")]
378 InstanceMissingDreamMakerSettings,
383 [Description(
"Could not retrieve Repository settings from the database!")]
384 InstanceMissingRepositorySettings,
389 [Description(
"Performing this automatic update as a merge would result in conficts. Aborting!")]
390 InstanceUpdateTestMergeConflict,
395 [Description(
"Git credentials are required for this operation!")]
396 RepoCredentialsRequired,
401 [Description(
"The remote is requesting authentication, but is not allowing credentials to be received!")]
402 RepoCannotAuthenticate,
407 [Description(
"This git operation requires the repository HEAD to currently be on a tracked reference!")]
408 RepoReferenceRequired,
413 [Description(
"The watchdog is already running!")]
419 [Description(
"Cannot launch active compile job as it is missing or corrupted!")]
420 WatchdogCompileJobCorrupted,
425 [Description(
"Game server failed to start!")]
426 WatchdogStartupFailed,
431 [Description(
"Game server failed to start within the configured timeout!")]
432 WatchdogStartupTimeout,
437 [Description(
"Test merging with the current remote is not supported!")]
438 RepoUnsupportedTestMergeRemote,
443 [Description(
"The value set for checkoutSha or reference should be in the other field!")]
444 RepoSwappedShaOrReference,
449 [Description(
"A merge conflict occurred while performing the operation!")]
455 [Description(
"The repository's current reference is unsuitable for this operation as it does not track a remote reference!")]
456 RepoReferenceNotTracking,
461 [Description(
"Encountered merge conflicts while test merging one or more sources!")]
462 RepoTestMergeConflict,
467 [Description(
"The new instance's path is not under a white-listed path.")]
468 InstanceNotAtWhitelistedPath,
473 [Description(
"Cannot set both softShutdown and softReboot at once!")]
474 GameServerDoubleSoft,
479 [Description(
"Cannot start DreamDaemon headless with the BYOND pager running!")]
480 DreamDaemonPagerRunning,
485 [Description(
"Could not bind to requested game server port! Is there another service running on that port?")]
491 [Description(
"The deployment succeeded but one or more notification events failed!")]
497 [Description(
"Cannot restart the watchdog as it is not running!")]
503 [Description(
"The requested resource is not currently present, but may have been in the past.")]
509 [Description(
"The requested resource is not present and never has been.")]
510 ResourceNeverPresent,
515 [Description(
"A required GitHub API call failed due to rate limiting.")]
521 [Description(
"Cannot cancel the job as it is no longer running.")]
527 [Description(
"Attempted to create a process dump but /usr/bin/gcore could not be located!")]
533 [Description(
"Could not create dump as gcore exited with a non-zero exit code!")]
539 [Description(
"Test merging cannot be performed with this remote!")]
540 RepoTestMergeInvalidRemote,
545 [Description(
"Cannot switch to requested custom engine version as it is not currently installed.")]
546 EngineNonExistentCustomVersion,
551 [Description(
"Cannot perform this operation as the game server is not currently running!")]
557 [Description(
"The instance associated with the operation is currently offline!")]
563 [Description(
"Failed to connect chat bot!")]
564 ChatCannotConnectProvider,
569 [Description(
"Failed to allow game server through the Windows firewall!")]
575 [Description(
"TGS was unable to find a free port to allocate for the operation!")]
581 [Description(
"The requested port is either already in use by TGS or could not be allocated!")]
587 [Description(
"The admin user cannot use OAuth connections!")]
588 AdminUserCannotOAuth,
593 [Description(
"The requested OAuth provider is disabled via configuration!")]
594 OAuthProviderDisabled,
599 [Description(
"The job did not receive a required upload before timing out!")]
605 [Description(
"A user may not have both a permissionSet and group!")]
606 UserGroupAndPermissionSet,
611 [Description(
"Cannot delete the user group as it is not empty!")]
617 [Description(
"The user cannot be created because the configured limit has been reached!")]
623 [Description(
"The user group cannot be created because the configured limit has been reached!")]
624 UserGroupLimitReached,
629 [Description(
"The deployment took longer than the configured timeout!")]
635 [Description(
"Could not send broadcast to the DMAPI. This can happen either due to there being an insufficient DMAPI version, a communication failure, or the server being offline.")]
641 [Description(
"OpenDream could not be compiled due to being unable to locate the dotnet executable!")]
642 OpenDreamCantFindDotnet,
647 [Description(
"The specified OpenDream version is too old!")]
653 [Description(
"Could not create dump as dotnet diagnostics threw an exception!")]
654 DotnetDiagnosticsFailure,
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.