tgstation-server 6.8.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ErrorCode.cs
Go to the documentation of this file.
1using System.ComponentModel;
2
4
6{
11 public enum ErrorCode : uint
12 {
16 [Description("An internal server error occurred!")]
17 InternalServerError,
18
22 [Description("API version mismatch!")]
23 ApiMismatch,
24
28 [Description("The request body was malformed!")]
29 ModelValidationFailure,
30
34 [Description("An IO error occurred during the operation!")]
35 IOError,
36
40 [Description("A header validation error occurred!")]
41 BadHeaders,
42
46 [Description("Cannot generate a bearer token using a bearer token!")]
47 TokenWithToken,
48
52 [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!")]
53 DatabaseIntegrityConflict,
54
58 [Description("Functionality is unavailable due to a missing host watchdog component! This should NOT be seen in a production environment!")]
59 MissingHostWatchdog,
60
64 [Description($"Cannot downgrade to {Constants.CanonicalPackageName} major version <4!")]
65 CannotChangeServerSuite,
66
70 [Description("A required remote API request returned an error!")]
71 RemoteApiError,
72
76 [Description("A server update was requested while another was in progress!")]
77 ServerUpdateInProgress,
78
82 [Description("Can only change the capitalization of a user's name!")]
83 UserNameChange,
84
88 [Description("Cannot change a user's systemIdentifier!")]
89 UserSidChange,
90
94 [Description("A user cannot have both a name and systemIdentifier!")]
95 UserMismatchNameSid,
96
100 [Description("A user cannot have both a password and systemIdentifier!")]
101 UserMismatchPasswordSid,
102
106 [Description("The given password is less than the server's configured minimum password length!")]
107 UserPasswordLength,
108
112 [Description("User names cannot contain the ':' character!")]
113 UserColonInName,
114
118 [Description("User's name is missing or invalid whitespace!")]
119 UserMissingName,
120
124 [Description("Cannot relocate an instance while it is online!")]
125 InstanceRelocateOnline,
126
130 [Description("The instance cannot be placed at the given path because it is not empty!")]
131 InstanceAtExistingPath,
132
136 [Description("Cannot detach an instance while it is online!")]
137 InstanceDetachOnline,
138
142 [Description("The instance cannot be placed at the given path because it is a child of an existing instance or the server installation directory!")]
143 InstanceAtConflictingPath,
144
148 [Description("The instance cannot be created because the configured limit has been reached!")]
149 InstanceLimitReached,
150
154 [Description("Instance names and paths cannot be whitespace!")]
155 InstanceWhitespaceNameOrPath,
156
160 [Description("The request path requires the 'Instance' header to be set!")]
161 InstanceHeaderRequired,
162
166 [Description("This operation requires POSIX system identities to be implemented. See https://github.com/tgstation/tgstation-server/issues/709 for details.")]
167 RequiresPosixSystemIdentity,
168
172 [Description("This existing file hash does not match, the file has beeen updated!")]
173 ConfigurationFileUpdated,
174
178 [Description("The directory cannot be deleted because it is not empty!")]
179 ConfigurationDirectoryNotEmpty,
180
184 [Description("The server swarm has less than the expected amount of nodes!")]
185 SwarmIntegrityCheckFailed,
186
190 [Description("Either both accessUser and accessToken must be set or neither!")]
191 RepoMismatchUserAndAccessToken,
192
196 [Description("The repository is busy being cloned!")]
197 RepoCloning,
198
202 [Description("The repository is busy with another operation!")]
203 RepoBusy,
204
208 [Description("The repository already exists!")]
209 RepoExists,
210
214 [Description("The repository does not exist and must be cloned!")]
215 RepoMissing,
216
220 [Description("Cannot checkoutSha and set reference at the same time!")]
221 RepoMismatchShaAndReference,
222
226 [Description("Cannot checkoutSha and updateFromOrigin at the same time!")]
227 RepoMismatchShaAndUpdate,
228
232 [Description("Could not delete engine version due to it being selected as the instance's active version.")]
233 EngineCannotDeleteActiveVersion,
234
238 [Description("The same test merge was present more than once or is already merged!")]
239 RepoDuplicateTestMerge,
240
244 [Description("committerName cannot be whitespace!")]
245 RepoWhitespaceCommitterName,
246
250 [Description("committerEmail cannot be whitespace!")]
251 RepoWhitespaceCommitterEmail,
252
256 [Description("Requested pageSize is too large!")]
257 ApiPageTooLarge,
258
262 [Description("Cannot request page or pageSize <= 0.")]
263 ApiInvalidPageOrPageSize,
264
268 [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!")]
269 ChatBotWrongChannelType,
270
274 [Description("A chat bot's connection string cannot be whitespace!")]
275 ChatBotWhitespaceConnectionString,
276
280 [Description("A chat bot's name cannot be whitespace!")]
281 ChatBotWhitespaceName,
282
286 [Description("Missing chat bot provider!")]
287 ChatBotProviderMissing,
288
292 [Description("IO operation could not start contended access to the instance's configuration directory!")]
293 ConfigurationContendedAccess,
294
298 [Description("Performing this operation would violate the instance's configured chatBotLimit!")]
299 ChatBotMax,
300
304 [Description("Set amount of chatChannels exceeds the configured channelLimit!")]
305 ChatBotMaxChannels,
306
310 [Description("Unable to start DirectX installer process! Is the server running with admin privileges?")]
311 ByondDirectXInstallFail,
312
316 [Description("Error downloading specified engine version!")]
317 EngineDownloadFail,
318
322 [Description("Could not acquire lock on engine installation as none exist!")]
323 EngineNoVersionsInstalled,
324
328 [Description("DMAPI validation failed! See FAQ at https://github.com/tgstation/tgstation-server/discussions/1695")]
329 DeploymentNeverValidated,
330
334 [Description("The DMAPI sent an invalid validation request!")]
335 DeploymentInvalidValidation,
336
340 [Description("This user is passwordless and removing their oAuthConnections would leave them with no authentication method!")]
341 CannotRemoveLastAuthenticationOption,
342
346 [Description("No .dme configured and could not automatically detect one!")]
347 DeploymentNoDme,
348
352 [Description("Could not load configured .dme!")]
353 DeploymentMissingDme,
354
358 [Description("Compiler exited with a non-zero exit code!")]
359 DeploymentExitCode,
360
364 [Description("There is already a deployment operation in progress!")]
365 DeploymentInProgress,
366
370 [Description("Could not retrieve DreamDaemon settings from the database!")]
371 InstanceMissingDreamDaemonSettings,
372
376 [Description("Could not retrieve DreamMaker settings from the database!")]
377 InstanceMissingDreamMakerSettings,
378
382 [Description("Could not retrieve Repository settings from the database!")]
383 InstanceMissingRepositorySettings,
384
388 [Description("Performing this automatic update as a merge would result in conficts. Aborting!")]
389 InstanceUpdateTestMergeConflict,
390
394 [Description("Git credentials are required for this operation!")]
395 RepoCredentialsRequired,
396
400 [Description("The remote is requesting authentication, but is not allowing credentials to be received!")]
401 RepoCannotAuthenticate,
402
406 [Description("This git operation requires the repository HEAD to currently be on a tracked reference!")]
407 RepoReferenceRequired,
408
412 [Description("The watchdog is already running!")]
413 WatchdogRunning,
414
418 [Description("Cannot launch active compile job as it is missing or corrupted!")]
419 WatchdogCompileJobCorrupted,
420
424 [Description("Game server failed to start!")]
425 WatchdogStartupFailed,
426
430 [Description("Game server failed to start within the configured timeout!")]
431 WatchdogStartupTimeout,
432
436 [Description("Test merging with the current remote is not supported!")]
437 RepoUnsupportedTestMergeRemote,
438
442 [Description("The value set for checkoutSha or reference should be in the other field!")]
443 RepoSwappedShaOrReference,
444
448 [Description("A merge conflict occurred while performing the operation!")]
449 RepoMergeConflict,
450
454 [Description("The repository's current reference is unsuitable for this operation as it does not track a remote reference!")]
455 RepoReferenceNotTracking,
456
460 [Description("Encountered merge conflicts while test merging one or more sources!")]
461 RepoTestMergeConflict,
462
466 [Description("The new instance's path is not under a white-listed path.")]
467 InstanceNotAtWhitelistedPath,
468
472 [Description("Cannot set both softShutdown and softReboot at once!")]
473 GameServerDoubleSoft,
474
478 [Description("Cannot start DreamDaemon headless with the BYOND pager running!")]
479 DreamDaemonPagerRunning,
480
484 [Description("Could not bind to requested game server port! Is there another service running on that port?")]
485 GameServerPortInUse,
486
490 [Description("The deployment succeeded but one or more notification events failed!")]
491 PostDeployFailure,
492
496 [Description("Cannot restart the watchdog as it is not running!")]
497 WatchdogNotRunning,
498
502 [Description("The requested resource is not currently present, but may have been in the past.")]
503 ResourceNotPresent,
504
508 [Description("The requested resource is not present and never has been.")]
509 ResourceNeverPresent,
510
514 [Description("A required GitHub API call failed due to rate limiting.")]
515 GitHubApiRateLimit,
516
520 [Description("Cannot cancel the job as it is no longer running.")]
521 JobStopped,
522
526 [Description("Attempted to create a process dump but /usr/bin/gcore could not be located!")]
527 MissingGCore,
528
532 [Description("Could not create dump as gcore exited with a non-zero exit code!")]
533 GCoreFailure,
534
538 [Description("Test merging cannot be performed with this remote!")]
539 RepoTestMergeInvalidRemote,
540
544 [Description("Cannot switch to requested custom engine version as it is not currently installed.")]
545 EngineNonExistentCustomVersion,
546
550 [Description("Cannot perform this operation as the game server is not currently running!")]
551 GameServerOffline,
552
556 [Description("The instance associated with the operation is currently offline!")]
557 InstanceOffline,
558
562 [Description("Failed to connect chat bot!")]
563 ChatCannotConnectProvider,
564
568 [Description("Failed to allow game server through the Windows firewall!")]
569 EngineFirewallFail,
570
574 [Description("TGS was unable to find a free port to allocate for the operation!")]
575 NoPortsAvailable,
576
580 [Description("The requested port is either already in use by TGS or could not be allocated!")]
581 PortNotAvailable,
582
586 [Description("The admin user cannot use OAuth connections!")]
587 AdminUserCannotOAuth,
588
592 [Description("The requested OAuth provider is disabled via configuration!")]
593 OAuthProviderDisabled,
594
598 [Description("The job did not receive a required upload before timing out!")]
599 FileUploadExpired,
600
604 [Description("A user may not have both a permissionSet and group!")]
605 UserGroupAndPermissionSet,
606
610 [Description("Cannot delete the user group as it is not empty!")]
611 UserGroupNotEmpty,
612
616 [Description("The user cannot be created because the configured limit has been reached!")]
617 UserLimitReached,
618
622 [Description("The user group cannot be created because the configured limit has been reached!")]
623 UserGroupLimitReached,
624
628 [Description("The deployment took longer than the configured timeout!")]
629 DeploymentTimeout,
630
634 [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.")]
635 BroadcastFailure,
636
640 [Description("OpenDream could not be compiled due to being unable to locate the dotnet executable!")]
641 OpenDreamCantFindDotnet,
642
646 [Description("The specified OpenDream version is too old!")]
647 OpenDreamTooOld,
648
652 [Description("Could not create dump as dotnet diagnostics threw an exception!")]
653 DotnetDiagnosticsFailure,
654
658 [Description("Could not load configured .dme due to it being outside the deployment directory! This should be a relative path.")]
659 DeploymentWrongDme,
660 }
661}
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.
Definition: ErrorCode.cs:12