@@ 25,6 25,10 @@ pub enum APIError {
#[error("missing authorization")]
MissingAuthorization = 10002,
+ #[doc = "For when pool.get() fails"]
+ #[error("database pool get failed")]
+ DatabasePoolGetFailed = 10003,
+
// user related errors
#[doc = "User does not exist in the database"]
#[error("user not found")]
@@ 34,6 38,10 @@ pub enum APIError {
#[error("invalid credentials")]
UserInvalidCredentials = 11001,
+ #[doc = "Argon2 failed somehow"]
+ #[error("password hash failed")]
+ UserPasswordHashFailed = 11002,
+
// login errors
#[doc = ""]
#[error("invalid email")]