Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add error codes (#2159)
Leendert de Borst6325cebbee61
diff --git a/apps/server/Shared/AliasVault.Shared/Models/Enums/ApiErrorCode.cs b/apps/server/Shared/AliasVault.Shared/Models/Enums/ApiErrorCode.csindex b7c355428..222227b1b 100644--- a/apps/server/Shared/AliasVault.Shared/Models/Enums/ApiErrorCode.cs+++ b/apps/server/Shared/AliasVault.Shared/Models/Enums/ApiErrorCode.cs@@ -169,16 +169,6 @@ public enum ApiErrorCode/// </summary>SHARED_MANIFEST_NOT_FOUND,- /// <summary>- /// The recipient already has a share grant for this manifest.- /// </summary>- SHARE_ALREADY_EXISTS,-- /// <summary>- /// No share grant exists for the given recipient and manifest.- /// </summary>- SHARE_NOT_FOUND,-/// <summary>/// The recipient has no usable public key to encrypt a shared vault key for, or the referenced key is invalid./// </summary>@@ -204,6 +194,52 @@ public enum ApiErrorCode/// </summary>GROUP_NOT_FOUND,+ /// <summary>+ /// The group already holds a manifest, so the caller must use that one instead of creating another.+ /// </summary>+ GROUP_MANIFEST_EXISTS,++ /// <summary>+ /// The invitation does not exist, is not addressed to (or sent by) the caller, or was already answered.+ /// </summary>+ INVITATION_NOT_FOUND,++ /// <summary>+ /// There is already an open invitation for this user in this group.+ /// </summary>+ INVITATION_ALREADY_EXISTS,++ /// <summary>+ /// No account can be invited under the given username, or it is the caller's own.+ /// </summary>+ INVITE_RECIPIENT_NOT_FOUND,++ /// <summary>+ /// The invited user is already a member of the group.+ /// </summary>+ ALREADY_GROUP_MEMBER,++ /// <summary>+ /// The group's owner cannot be removed from it; ownership has to be transferred first.+ /// </summary>+ CANNOT_REMOVE_GROUP_OWNER,++ /// <summary>+ /// The invited account has published no public key, so a shared vault key cannot be encrypted for it. The account+ /// has to finish upgrading its vault before it can be invited anywhere.+ /// </summary>+ INVITE_RECIPIENT_NOT_READY,++ /// <summary>+ /// The group has no shared vault yet, so there is no key to hand an invitee. One has to be created first.+ /// </summary>+ GROUP_HAS_NO_VAULT,++ /// <summary>+ /// The client action does not exist, or is not addressed to the caller.+ /// </summary>+ CLIENT_ACTION_NOT_FOUND,+/// <summary>/// Mobile login request contains an invalid client public key./// </summary>