tgstation-server  4.3.2
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 Mismatch but no current API version provided!")]
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("Primary and secondary ports cannot be the same!")]
257 
261  [Description("Deprecated error code.")]
262  [Obsolete("With DMAPI-5.0.0, ultrasafe security is now supported.", true)]
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!")]
270 
274  [Description("A chat bot's connection string cannot be whitespace!")]
276 
280  [Description("A chat bot's name cannot be whitespace!")]
282 
286  [Description("Missing chat bot provider!")]
288 
292  [Description("Missing user ID!")]
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!")]
306 
310  [Description("Unable to start DirectX installer process! Is the server running with admin privileges?")]
312 
316  [Description("Error downloading specified BYOND version!")]
318 
322  [Description("Could not acquire lock on BYOND installation as none exist!")]
324 
328  [Description("DreamDaemon exited without validating the DMAPI@")]
330 
334  [Description("The DMAPI sent an invalid validation request!")]
336 
340  [Description("The DreamDaemon startup timeout was hit before the DMAPI validated!")]
342 
346  [Description("No .dme configured and could not automatically detect one!")]
348 
352  [Description("Could not load configured .dme!")]
354 
358  [Description("DreamMaker exited with a non-zero exit code!")]
360 
364  [Description("There is already a deployment operation in progress!")]
366 
370  [Description("Could not retrieve DreamDaemon settings from the database!")]
372 
376  [Description("Could not retrieve DreamMaker settings from the database!")]
378 
382  [Description("Could not retrieve Repository settings from the database!")]
384 
388  [Description("Performing this automatic update as a merge would result in conficts. Aborting!")]
390 
394  [Description("Git credentials are required for this operation!")]
396 
400  [Description("The remote is requesting authentication, but is not allowing credentials to be received!")]
402 
406  [Description("This git operation requires the repository HEAD to currently be on a tracked reference!")]
408 
412  [Description("The watchdog is already running!")]
414 
418  [Description("Cannot launch active compile job as it is missing or corrupted!")]
420 
424  [Description("DreamDaemon failed to start!")]
426 
430  [Description("DreamDaemon failed to start within the configured timeout!")]
432 
436  [Description("Test merging with the current remote is not supported!")]
438 
442  [Description("The value set for checkoutSha or reference should be in the other field!")]
444 
448  [Description("A merge conflict occurred while performing the operation!")]
450 
454  [Description("The repository's current reference is unsuitable for this operation as it does not track a remote reference!")]
456 
460  [Description("Encountered merge conflicts while test merging one or more pull requests!")]
462 
466  [Description("The new instance's path is not under a white-listed path.")]
468 
472  [Description("Cannot set both softShutdown and softReboot at once!")]
474 
478  [Description("Cannot start DreamDaemon headless with the BYOND pager running!")]
480 
484  [Description("Could not bind to requested DreamDaemon port! Is there another service running on that port?")]
486 
490  [Description("The deployment succeeded but one or more notification events failed!")]
492 
496  [Description("Cannot restart the watchdog as it is not running!")]
498  }
499 }
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 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 change the origin of an existing repository.
Internal.ChatBot.Provider was during creation.
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 set Internal.DreamDaemonLaunchParameters.PrimaryPort and Internal.DreamDaemonLaunchParam...
Attempted to make a DreamDaemon update with both DreamDaemon.SoftRestart and DreamDaemon.SoftShutdown set.
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.
DreamDaemonSecurity.Ultrasafe was used where it is not supported.
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 test merge with an unsupported remote.
A server update was requested while another was in progress.
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.
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.