2using System.ComponentModel;
15 [Description(
"An internal server error occurred!")]
21 [Description(
"API version mismatch!")]
27 [Description(
"The request body was malformed!")]
28 ModelValidationFailure,
33 [Description(
"An IO error occurred during the operation!")]
39 [Description(
"A header validation error occurred!")]
45 [Description(
"Cannot generate a bearer token using a bearer token!")]
51 [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!")]
52 DatabaseIntegrityConflict,
57 [Description(
"Functionality is unavailable due to a missing host watchdog component! This should NOT be seen in a production environment!")]
63 [Description(
"Cannot downgrade to tgstation-server major version <4!")]
64 CannotChangeServerSuite,
69 [Description(
"A required remote API request returned an error!")]
75 [Description(
"A server update was requested while another was in progress!")]
76 ServerUpdateInProgress,
81 [Description(
"Can only change the capitalization of a user's name!")]
87 [Description(
"Cannot change a user's systemIdentifier!")]
93 [Description(
"A user cannot have both a name and systemIdentifier!")]
99 [Description(
"A user cannot have both a password and systemIdentifier!")]
100 UserMismatchPasswordSid,
105 [Description(
"The given password is less than the server's configured minimum password length!")]
111 [Description(
"User names cannot contain the ':' character!")]
117 [Description(
"User's name is missing or invalid whitespace!")]
123 [Description(
"Cannot relocate an instance while it is online!")]
124 InstanceRelocateOnline,
129 [Description(
"The instance cannot be placed at the given path because it is not empty!")]
130 InstanceAtExistingPath,
135 [Description(
"Cannot detach an instance while it is online!")]
136 InstanceDetachOnline,
141 [Description(
"The instance cannot be placed at the given path because it is a child of an existing instance or the server installation directory!")]
142 InstanceAtConflictingPath,
147 [Description(
"The instance cannot be created because the configured limit has been reached!")]
148 InstanceLimitReached,
153 [Description(
"Instance names cannot be whitespace!")]
154 InstanceWhitespaceName,
159 [Description(
"The request path requires the 'Instance' header to be set!")]
160 InstanceHeaderRequired,
165 [Description(
"This operation requires POSIX system identities to be implemented. See https://github.com/tgstation/tgstation-server/issues/709 for details.")]
166 RequiresPosixSystemIdentity,
171 [Description(
"This existing file hash does not match, the file has beeen updated!")]
172 ConfigurationFileUpdated,
177 [Description(
"The directory cannot be deleted because it is not empty!")]
178 ConfigurationDirectoryNotEmpty,
183 [Description(
"The server swarm has less than the expected amount of nodes!")]
184 SwarmIntegrityCheckFailed,
189 [Description(
"Either both accessUser and accessToken must be set or neither!")]
190 RepoMismatchUserAndAccessToken,
195 [Description(
"The repository is busy being cloned!")]
201 [Description(
"The repository is busy with another operation!")]
207 [Description(
"The repository already exists!")]
213 [Description(
"The repository does not exist and must be cloned!")]
219 [Description(
"Cannot checkoutSha and set reference at the same time!")]
220 RepoMismatchShaAndReference,
225 [Description(
"Cannot checkoutSha and updateFromOrigin at the same time!")]
226 RepoMismatchShaAndUpdate,
231 [Description(
"Could not delete BYOND version due to it being selected as the instance's active version.")]
232 ByondCannotDeleteActiveVersion,
237 [Description(
"The same test merge was present more than once or is already merged!")]
238 RepoDuplicateTestMerge,
243 [Description(
"committerName cannot be whitespace!")]
244 RepoWhitespaceCommitterName,
249 [Description(
"committerEmail cannot be whitespace!")]
250 RepoWhitespaceCommitterEmail,
255 [Description(
"Requested pageSize is too large!")]
261 [Description(
"Cannot request page or pageSize <= 0.")]
262 ApiInvalidPageOrPageSize,
267 [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!")]
268 ChatBotWrongChannelType,
273 [Description(
"A chat bot's connection string cannot be whitespace!")]
274 ChatBotWhitespaceConnectionString,
279 [Description(
"A chat bot's name cannot be whitespace!")]
280 ChatBotWhitespaceName,
285 [Description(
"Missing chat bot provider!")]
286 ChatBotProviderMissing,
291 [Description(
"IO operation could not start contended access to the instance's configuration directory!")]
292 ConfigurationContendedAccess,
297 [Description(
"Performing this operation would violate the instance's configured chatBotLimit!")]
303 [Description(
"Set amount of chatChannels exceeds the configured channelLimit!")]
309 [Description(
"Unable to start DirectX installer process! Is the server running with admin privileges?")]
310 ByondDirectXInstallFail,
315 [Description(
"Error downloading specified BYOND version!")]
321 [Description(
"Could not acquire lock on BYOND installation as none exist!")]
322 ByondNoVersionsInstalled,
327 [Description(
"DreamDaemon did not validate the DMAPI! This can occur if your world is encountering runtime errors during startup.")]
328 DreamMakerNeverValidated,
333 [Description(
"The DMAPI sent an invalid validation request!")]
334 DreamMakerInvalidValidation,
339 [Description(
"This user is passwordless and removing their oAuthConnections would leave them with no authentication method!")]
340 CannotRemoveLastAuthenticationOption,
345 [Description(
"No .dme configured and could not automatically detect one!")]
351 [Description(
"Could not load configured .dme!")]
352 DreamMakerMissingDme,
357 [Description(
"DreamMaker exited with a non-zero exit code!")]
363 [Description(
"There is already a deployment operation in progress!")]
364 DreamMakerCompileJobInProgress,
369 [Description(
"Could not retrieve DreamDaemon settings from the database!")]
370 InstanceMissingDreamDaemonSettings,
375 [Description(
"Could not retrieve DreamMaker settings from the database!")]
376 InstanceMissingDreamMakerSettings,
381 [Description(
"Could not retrieve Repository settings from the database!")]
382 InstanceMissingRepositorySettings,
387 [Description(
"Performing this automatic update as a merge would result in conficts. Aborting!")]
388 InstanceUpdateTestMergeConflict,
393 [Description(
"Git credentials are required for this operation!")]
394 RepoCredentialsRequired,
399 [Description(
"The remote is requesting authentication, but is not allowing credentials to be received!")]
400 RepoCannotAuthenticate,
405 [Description(
"This git operation requires the repository HEAD to currently be on a tracked reference!")]
406 RepoReferenceRequired,
411 [Description(
"The watchdog is already running!")]
417 [Description(
"Cannot launch active compile job as it is missing or corrupted!")]
418 WatchdogCompileJobCorrupted,
423 [Description(
"DreamDaemon failed to start!")]
424 WatchdogStartupFailed,
429 [Description(
"DreamDaemon failed to start within the configured timeout!")]
430 WatchdogStartupTimeout,
435 [Description(
"Test merging with the current remote is not supported!")]
436 RepoUnsupportedTestMergeRemote,
441 [Description(
"The value set for checkoutSha or reference should be in the other field!")]
442 RepoSwappedShaOrReference,
447 [Description(
"A merge conflict occurred while performing the operation!")]
453 [Description(
"The repository's current reference is unsuitable for this operation as it does not track a remote reference!")]
454 RepoReferenceNotTracking,
459 [Description(
"Encountered merge conflicts while test merging one or more sources!")]
460 RepoTestMergeConflict,
465 [Description(
"The new instance's path is not under a white-listed path.")]
466 InstanceNotAtWhitelistedPath,
471 [Description(
"Cannot set both softShutdown and softReboot at once!")]
472 DreamDaemonDoubleSoft,
477 [Description(
"Cannot start DreamDaemon headless with the BYOND pager running!")]
478 DeploymentPagerRunning,
483 [Description(
"Could not bind to requested DreamDaemon port! Is there another service running on that port?")]
484 DreamDaemonPortInUse,
489 [Description(
"The deployment succeeded but one or more notification events failed!")]
495 [Description(
"Cannot restart the watchdog as it is not running!")]
501 [Description(
"The requested resource is not currently present, but may have been in the past.")]
507 [Description(
"The requested resource is not present and never has been.")]
508 ResourceNeverPresent,
513 [Description(
"A required GitHub API call failed due to rate limiting.")]
519 [Description(
"Cannot cancel the job as it is no longer running.")]
525 [Description(
"Attempted to create a process dump but /usr/bin/gcore could not be located!")]
531 [Description(
"Could not create dump as gcore exited with a non-zero exit code!")]
537 [Description(
"Test merging cannot be performed with this remote!")]
538 RepoTestMergeInvalidRemote,
543 [Description(
"Cannot switch to requested custom BYOND version as it is not currently installed.")]
544 ByondNonExistentCustomVersion,
549 [Description(
"Cannot perform this operation as DreamDaemon is not currently running!")]
555 [Description(
"The instance associated with the operation is currently offline!")]
561 [Description(
"Failed to connect chat bot!")]
562 ChatCannotConnectProvider,
567 [Description(
"Failed to allow DreamDaemon through the Windows firewall!")]
568 ByondDreamDaemonFirewallFail,
573 [Description(
"TGS was unable to find a free port to allocate for the operation!")]
579 [Description(
"The requested port is either already in use by TGS or could not be allocated!")]
585 [Description(
"The admin user cannot use OAuth connections!")]
586 AdminUserCannotOAuth,
591 [Description(
"The requested OAuth provider is disabled via configuration!")]
592 OAuthProviderDisabled,
597 [Description(
"The job did not receive a required upload before timing out!")]
603 [Description(
"A user may not have both a permissionSet and group!")]
604 UserGroupAndPermissionSet,
609 [Description(
"Cannot delete the user group as it is not empty!")]
615 [Description(
"The user cannot be created because the configured limit has been reached!")]
621 [Description(
"The user group cannot be created because the configured limit has been reached!")]
622 UserGroupLimitReached,
627 [Description(
"The deployment took longer than the configured timeout!")]
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.