diff --git a/src/errors/user.rs b/src/errors/user.rs index e153306..161b7f7 100644 --- a/src/errors/user.rs +++ b/src/errors/user.rs @@ -74,7 +74,7 @@ impl AppError for UserError { UserError::InvalidPassword { .. } => StatusCode::BAD_REQUEST, UserError::InvalidUsername { .. } => StatusCode::BAD_REQUEST, UserError::InvalidEmail { .. } => StatusCode::BAD_REQUEST, - UserError::DeleteRestricted { .. } => StatusCode::CONFLICT, + UserError::DeleteRestricted { .. } => StatusCode::FORBIDDEN, UserError::OidcAuthenticationFailed { .. } => StatusCode::UNAUTHORIZED, UserError::AuthProviderNotConfigured { .. } => StatusCode::BAD_REQUEST, UserError::TokenExpired => StatusCode::UNAUTHORIZED,