tgstation-server  4.4.0
The /tg/station 13 server suite
ErrorCode.cs
Go to the documentation of this file.
1 using System;
2 using System.ComponentModel;
3 
4 namespace Tgstation.Server.Api.Models
5 {
10  public enum ErrorCode : uint
11  {
15  [Description("An internal server error occurred!")]
17 
21  [Description("API version mismatch!")]
23 
27  [Description("The request body was malformed!")]
29 
33  [Description("An IO error occurred during the operation!")]
34  IOError,
35 
39  [Description("A header validation error occurred!")]
40  BadHeaders,
41 
45  [Description("Cannot generate a bearer token using a bearer token!")]
47 
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.")]
53 
57  [Description("Functionality is unavailable due to a missing host watchdog component! This should NOT be seen in a production environment!")]
59 
63  [Description("Cannot update to a different tgstation-server suite version.")]
65 
69  [Description("A required GitHub request returned an API error!")]
71 
75  [Description("A server update was requested while another was in progress")]
77 
81  [Description("Can only change the capitalization of a user's name!")]
83 
87  [Description("Cannot change a user's systemIdentifier!")]
89 
93  [Description("A user cannot have both a name and systemIdentifier!")]
95 
99  [Description("A user cannot have both a password and systemIdentifier!")]
101 
105  [Description("The given password is less than the server's configured minimum password length!")]
107 
111  [Description("User names cannot contain the ':' character!")]
113 
117  [Description("User's name is missing or invalid whitespace!")]
119 
123  [Description("Cannot relocate an instance while it is online!")]
125 
129  [Description("The instance cannot be placed at the given path because it is not empty!")]
131 
135  [Description("Cannot detach an instance while it is online!")]
137 
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!")]
143 
147  [Description("The instance cannot be created because the configured limit has been reached!")]
149 
153  [Description("Instance names cannot be whitespace!")]
155 
159  [Description("The request path requires the 'Instance' header to be set!")]
161 
165  [Description("This operation requires POSIX system identities to be implemented. See https://github.com/tgstation/tgstation-server/issues/709 for details.")]
167 
171  [Description("This existing file hash does not match, the file has beeen updated!")]
173 
177  [Description("The directory cannot be deleted because it is not empty!")]
179 
183  [Description("Cannot clone repository with missing origin field!")]
185 
189  [Description("Either both accessUser and accessToken must be set or neither!")]
191 
195  [Description("The repository is busy being cloned!")]
196  RepoCloning,
197 
201  [Description("The repository is busy with another operation!")]
202  RepoBusy,
203 
207  [Description("The repository already exists!")]
208  RepoExists,
209 
213  [Description("The repository does not exist and must be cloned!")]
214  RepoMissing,
215 
219  [Description("Cannot checkoutSha and set reference at the same time!")]
221 
225  [Description("Cannot checkoutSha and updateFromOrigin at the same time!")]
227 
231  [Description("Cannot change the origin of an existing repository, delete and recreate it instead!")]
233 
237  [Description("The same pull request was present more than once in the test merge requests or is already merged!")]
239 
243  [Description("committerName cannot be whitespace!")]
245 
249  [Description("committerEmail cannot be whitespace!")]
251 
255  [Description("Deprecated error code.")]
256  [Obsolete("With API v7 ", true)]
258 
262  [Description("Deprecated error code.")]
263  [Obsolete("With DMAPI-5.0.0, ultrasafe security is now supported.", true)]
265 
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!")]
271 
275  [Description("A chat bot's connection string cannot be whitespace!")]
277 
281  [Description("A chat bot's name cannot be whitespace!")]
283 
287  [Description("Missing chat bot provider!")]
289 
293  [Description("Missing user ID!")]
295 
299  [Description("Performing this operation would violate the instance's configured chatBotLimit!")]
300  ChatBotMax,
301 
305  [Description("Set amount of chatChannels exceeds the configured channelLimit!")]
307 
311  [Description("Unable to start DirectX installer process! Is the server running with admin privileges?")]
313 
317  [Description("Error downloading specified BYOND version!")]
319 
323  [Description("Could not acquire lock on BYOND installation as none exist!")]
325 
329  [Description("DreamDaemon did not validate the DMAPI!")]
331 
335  [Description("The DMAPI sent an invalid validation request!")]
337 
341  [Description("The DreamDaemon startup timeout was hit before the DMAPI validated!")]
342  [Obsolete("Deprecated in favor of error code 52", true)]
344 
348  [Description("No .dme configured and could not automatically detect one!")]
350 
354  [Description("Could not load configured .dme!")]
356 
360  [Description("DreamMaker exited with a non-zero exit code!")]
362 
366  [Description("There is already a deployment operation in progress!")]
368 
372  [Description("Could not retrieve DreamDaemon settings from the database!")]
374 
378  [Description("Could not retrieve DreamMaker settings from the database!")]
380 
384  [Description("Could not retrieve Repository settings from the database!")]
386 
390  [Description("Performing this automatic update as a merge would result in conficts. Aborting!")]
392 
396  [Description("Git credentials are required for this operation!")]
398 
402  [Description("The remote is requesting authentication, but is not allowing credentials to be received!")]
404 
408  [Description("This git operation requires the repository HEAD to currently be on a tracked reference!")]
410 
414  [Description("The watchdog is already running!")]
416 
420  [Description("Cannot launch active compile job as it is missing or corrupted!")]
422 
426  [Description("DreamDaemon failed to start!")]
428 
432  [Description("DreamDaemon failed to start within the configured timeout!")]
434 
438  [Description("Test merging with the current remote is not supported!")]
440 
444  [Description("The value set for checkoutSha or reference should be in the other field!")]
446 
450  [Description("A merge conflict occurred while performing the operation!")]
452 
456  [Description("The repository's current reference is unsuitable for this operation as it does not track a remote reference!")]
458 
462  [Description("Encountered merge conflicts while test merging one or more pull requests!")]
464 
468  [Description("The new instance's path is not under a white-listed path.")]
470 
474  [Description("Cannot set both softShutdown and softReboot at once!")]
476 
480  [Description("Cannot start DreamDaemon headless with the BYOND pager running!")]
482 
486  [Description("Could not bind to requested DreamDaemon port! Is there another service running on that port?")]
488 
492  [Description("The deployment succeeded but one or more notification events failed!")]
494 
498  [Description("Cannot restart the watchdog as it is not running!")]
500 
504  [Description("The requested resource is not currently present, but may have been in the past.")]
506 
510  [Description("The requested resource is not present and never has been.")]
512 
516  [Description("A required GitHub API call failed due to rate limiting.")]
518 
522  [Description("Cannot cancel the job as it is no longer running.")]
523  JobStopped,
524 
528  [Description("Attempted to create a process dump but /usr/bin/gcore could not be located!")]
529  MissingGCore,
530 
534  [Description("Could not create dump as gcore exited with a non-zero exit code!")]
535  GCoreFailure,
536 
540  [Description("Test merging cannot be performed with this remote!")]
542 
546  [Description("Cannot switch to requested custom BYOND version as it is not currently installed.")]
548 
552  [Description("Cannot perform this operation as DreamDaemon is not currently running!")]
554  }
555 }
Either Repository.CheckoutSha or Repository.Reference was in one when it should have been the other...
The remote returned an invalid authentication request.
Attempted to create a User with a or whitespace Internal.User.Name.
Attempted to create a User with a ':' in the Internal.User.Name.
DreamDaemon exited before it finished starting.
Failed to download a given BYOND version.
The operation requires the unimplemented POSIX system identities feature.
Attempted to change a Instance.Path to a non-empty location.
Attempted to add a ChatBot when at or above the Instance.ChatBotLimit or it was set to something lowe...
Attempted to configure a ChatBot with more ChatChannels than the configured limit ...
ErrorCode
Types of ErrorMessages that the API may return.
Definition: ErrorCode.cs:10
One of Internal.RepositorySettings.AccessUser and Internal.RepositorySettings.AccessToken is set whil...
Attempted to create an Instance but the configured instance limit has been reached.
Tried to clone a repository with a missing Repository.Origin property.
Attempted to restart a stopped watchdog.
Attempted to set a whitespace Internal.RepositorySettings.CommitterName.
Attempted to start the watchdog with a corrupted CompileJob.
Attempted to create an instance outside of the Internal.ServerInformation.ValidInstancePaths.
An IO error occurred while working with the configuration system.
The repository is busy being cloned.
Attempted to test merge with an invalid remote repository.
Attempted to change something other than the capitalization of a Internal.User.Name.
Attempted to create an Instance with a whitespace Instance.Name.
Attempted to change a Instance.Path to a location that conflicts with the server install or another i...
Attempted to start the watchdog when it was already running.
Attempted to clone the repository when it already exists.
The configured .dme could not be found.
Could not bind to port we wanted to launch DreamDaemon on.
Attempted to update a User or InstanceUser without its ID.
Encounted merge conflicts while test merging.
Attempted to cancel a stopped job.
Attempted to change the origin of an existing repository.
Internal.ChatBot.Provider was during creation.
Attempted to switch to a custom BYOND version that does not exist.
An implementation error occurred while processing the request.
Attempted to perform a restart operation without the host watchdog component.
A requested ChatChannel's data does not match with its Internal.ChatBot.Provider. ...
Internal.RepositorySettings.AccessUser and Internal.RepositorySettings.AccessToken are required for t...
A merge conflict occurred during a git operation.
Attempted to set a whitespace Internal.RepositorySettings.CommitterEmail.
Attempted to make a DreamDaemon update with both DreamDaemon.SoftRestart and DreamDaemon.SoftShutdown set.
A required GitHub API call failed due to rate limiting.
Repository.NewTestMerges contained duplicate TestMergeParameters.Numbers.
Attempted to Repository.CheckoutSha and set Repository.Reference at the same time.
Attempted to change a Internal.User.SystemIdentifier.
The given UserUpdate.Password length was less than the server's configured minimum.
Failed to post GitHub comments, send chat message, or send TGS event.
Internal.ChatBot.ConnectionString was whitespace.
The current Repository.Reference does not track a remote reference.
Attempted to change a Instance.Path while it was Instance.Online.
Attempted to load a non-existant repo.
The ApiHeaders failed to validate!
Indicates an API upgrade was required by the server.
Attempted to change to a suite other than TGS4.
Cannot perform operation while not on a Repository.Reference.
Attempted to detach an Instance while it was Instance.Online.
Attempted to request a Token with an existing Token.
No .dme could be found for deployment.
The DMAPI sent an invalid validation request.
Performing an automatic update with the Internal.RepositorySettings.AutoUpdatesKeepTestMerges flag re...
Attempted to create a User with a Internal.User.Name and Internal.User.SystemIdentifier.
Attempted to access a resource that was never present.
Attempted to test merge with an unsupported remote.
A server update was requested while another was in progress.
Attempted to perform an operation that requires DreamDaemon (not the watchdog) to be running but it w...
Attempted to create a User with a UserUpdate.Password and Internal.User.SystemIdentifier.
The repository is busy with another operation.
The ApiHeaders.InstanceIdHeader header was required but not set.
Attempted to Repository.CheckoutSha and Repository.UpdateFromOrigin at the same time.
Attempted to access a resourse that is not (currently) present.
A required GitHub API request failed.
Attempted to launch DreamDaemon on a user account that had the BYOND pager running.
DreamDaemon timed-out before it finished starting.