Repository: elastic/ecctl
Pull request #49 (2019-11-15 05:50:54)

docs: Change the term Kibana Cluster to instance
## Description
<!--- Describe your changes in detail. -->
Kibana can have multiple instances but they do not form a cluster.
Changed the documentation to refer them as Kibana Instances

## Types of Changes
<!--- What types of changes does your code introduce? Put an `x` in -->
<!--- all the boxes that apply: -->
- [x] Documentation


Patch:
diff --git a/cmd/deployment/create.go b/cmd/deployment/create.go
index 028c9ea..40213a6 100644
--- a/cmd/deployment/create.go
+++ b/cmd/deployment/create.go
@@ -94,7 +94,6 @@ $ cat deployment_example.json
                 "ref_id": "my-kibana-instance",
                 "elasticsearch_cluster_ref_id": "my-es-cluster",
                 "plan": {
-                    "zone_count": 1,
                     "kibana": {
                         "version": "6.8.4"
                     },
@@ -102,7 +101,8 @@ $ cat deployment_example.json
                         {
                             "instance_configuration_id": "kibana",
                             "memory_per_node": 1024,
-                            "node_count_per_zone": 1
+                            "node_count_per_zone": 1,
+                            "zone_count": 1
                         }
                     ]
                 }
diff --git a/cmd/deployment/kibana/command.go b/cmd/deployment/kibana/command.go
index fd530c3..2c45e9c 100644
--- a/cmd/deployment/kibana/command.go
+++ b/cmd/deployment/kibana/command.go
@@ -26,7 +26,7 @@ import (
 // Command represents the top level kibana command.
 var Command = &cobra.Command{
 	Use:     "kibana",
-	Short:   "Manages Kibana clusters",
+	Short:   "Manages Kibana instances",
 	PreRunE: cobra.MaximumNArgs(0),
 	Run:     func(cmd *cobra.Command, args []string) { cmd.Help() },
 }
diff --git a/cmd/deployment/kibana/create.go b/cmd/deployment/kibana/create.go
index f75e110..7f60f7c 100644
--- a/cmd/deployment/kibana/create.go
+++ b/cmd/deployment/kibana/create.go
@@ -34,7 +34,7 @@ import (
 
 var createKibanaCmd = &cobra.Command{
 	Use:   "create -f <definition.json>",
-	Short: "Creates a Kibana Cluster",
+	Short: "Creates a Kibana instance",
 
 	PreRunE: cobra.MaximumNArgs(0),
 	RunE: func(cmd *cobra.Command, args []string) error {
@@ -95,7 +95,7 @@ func parseKibanaDefinitionFile(fp string) (models.CreateKibanaRequest, error) {
 
 func init() {
 	createKibanaCmd.Flags().BoolP("track", "t", false, cmdutil.TrackFlagMessage)
-	createKibanaCmd.Flags().StringP("file-template", "f", "", "JSON file that contains the Kibana cluster definition")
+	createKibanaCmd.Flags().StringP("file-template", "f", "", "JSON file that contains the Kibana instance definition")
 	createKibanaCmd.Flags().String("id", "", "Optional ID to set for the Elasticsearch cluster (Overrides ID if present).")
-	createKibanaCmd.Flags().String("name", "", "Optional name to set for the Kibana cluster (Overrides name if present).")
+	createKibanaCmd.Flags().String("name", "", "Optional name to set for the Kibana instance (Overrides name if present).")
 }
diff --git a/cmd/deployment/kibana/delete.go b/cmd/deployment/kibana/delete.go
index 49c4ffb..4a8c946 100644
--- a/cmd/deployment/kibana/delete.go
+++ b/cmd/deployment/kibana/delete.go
@@ -28,7 +28,7 @@ import (
 
 var deleteKibanaCmd = &cobra.Command{
 	Use:     "delete <cluster id>",
-	Short:   "Deletes a Kibana cluster",
+	Short:   "Deletes a Kibana instance",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 
 	RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/cmd/deployment/kibana/list.go b/cmd/deployment/kibana/list.go
index 003751e..0fc17fb 100644
--- a/cmd/deployment/kibana/list.go
+++ b/cmd/deployment/kibana/list.go
@@ -29,7 +29,7 @@ import (
 
 var kibanaListCmd = &cobra.Command{
 	Use:     "list",
-	Short:   "Returns the list of clusters for a region",
+	Short:   "Returns the list of kibana instances",
 	PreRunE: cobra.MaximumNArgs(0),
 	RunE: func(cmd *cobra.Command, args []string) error {
 		size, _ := cmd.Flags().GetInt64("size")
@@ -53,6 +53,6 @@ var kibanaListCmd = &cobra.Command{
 
 func init() {
 	kibanaListCmd.Flags().BoolP("metadata", "m", false, "Shows deployment metadata")
-	kibanaListCmd.Flags().Int64P("size", "s", 100, "Sets the upper limit of Kibana clusters to return")
+	kibanaListCmd.Flags().Int64P("size", "s", 100, "Sets the upper limit of Kibana instances to return")
 	kibanaListCmd.Flags().StringP("version", "v", "", "Filters per version")
 }
diff --git a/cmd/deployment/kibana/reallocate.go b/cmd/deployment/kibana/reallocate.go
index c4c54fa..db2cd78 100644
--- a/cmd/deployment/kibana/reallocate.go
+++ b/cmd/deployment/kibana/reallocate.go
@@ -27,8 +27,8 @@ import (
 
 var reallocateKibanaClusterCmd = &cobra.Command{
 	Use:     "reallocate <cluster id>",
-	Short:   "Reallocates the Kibana cluster nodes",
-	Long:    "Reallocates the Kibana cluster nodes. If no \"--instances\" are specified all of the nodes will be restarted",
+	Short:   "Reallocates Kibana instances",
+	Long:    "Reallocates Kibana instances. If no \"--instances\" are specified all of the nodes will be restarted",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 	RunE: func(cmd *cobra.Command, args []string) error {
 		instances, _ := cmd.Flags().GetStringSlice("instances")
diff --git a/cmd/deployment/kibana/restart.go b/cmd/deployment/kibana/restart.go
index 32f73a1..7884aa0 100644
--- a/cmd/deployment/kibana/restart.go
+++ b/cmd/deployment/kibana/restart.go
@@ -28,7 +28,7 @@ import (
 
 var restartKibanaCmd = &cobra.Command{
 	Use:     "restart <cluster id>",
-	Short:   "Restarts a Kibana cluster",
+	Short:   "Restarts a Kibana instance",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 	RunE: func(cmd *cobra.Command, args []string) error {
 		track, _ := cmd.Flags().GetBool("track")
diff --git a/cmd/deployment/kibana/resync.go b/cmd/deployment/kibana/resync.go
index 9686219..1d21deb 100644
--- a/cmd/deployment/kibana/resync.go
+++ b/cmd/deployment/kibana/resync.go
@@ -29,10 +29,10 @@ import (
 
 var resyncKibanaCmd = &cobra.Command{
 	Use:     "resync <cluster id>",
-	Short:   "Resynchronizes the search index and cache for the selected Kibana cluster",
+	Short:   "Resynchronizes the search index and cache for the selected Kibana instance",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 	RunE: func(cmd *cobra.Command, args []string) error {
-		fmt.Printf("Resynchronizing Kibana cluster: %s\n", args[0])
+		fmt.Printf("Resynchronizing Kibana instance: %s\n", args[0])
 		return kibana.Resync(kibana.DeploymentParams{
 			API: ecctl.Get().API,
 			ID:  args[0],
diff --git a/cmd/deployment/kibana/start.go b/cmd/deployment/kibana/start.go
index 658673b..9c513bc 100644
--- a/cmd/deployment/kibana/start.go
+++ b/cmd/deployment/kibana/start.go
@@ -31,7 +31,7 @@ import (
 
 var startKibanaCmd = &cobra.Command{
 	Use:     "start <cluster id>",
-	Short:   "Starts a Kibana cluster",
+	Short:   "Starts a Kibana instance",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 	RunE: func(cmd *cobra.Command, args []string) error {
 		c, err := kibana.Get(kibana.ClusterParams{
diff --git a/cmd/deployment/kibana/stop.go b/cmd/deployment/kibana/stop.go
index 3978663..e982a96 100644
--- a/cmd/deployment/kibana/stop.go
+++ b/cmd/deployment/kibana/stop.go
@@ -28,7 +28,7 @@ import (
 
 var stopKibanaCmd = &cobra.Command{
 	Use:     "stop <cluster id>",
-	Short:   "Downscales a Kibana cluster, so that it no longer contains any running instances.",
+	Short:   "Downscales a Kibana instance",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 	RunE: func(cmd *cobra.Command, args []string) error {
 		track, _ := cmd.Flags().GetBool("track")
diff --git a/cmd/deployment/kibana/upgrade.go b/cmd/deployment/kibana/upgrade.go
index 5825a19..3ee36f7 100644
--- a/cmd/deployment/kibana/upgrade.go
+++ b/cmd/deployment/kibana/upgrade.go
@@ -28,7 +28,7 @@ import (
 
 var upgradeKibanaCmd = &cobra.Command{
 	Use:     "upgrade <cluster id>>",
-	Short:   "Upgrades the Kibana cluster to the same version as the Elasticsearch one",
+	Short:   "Upgrades the Kibana instance to the same version as the Elasticsearch one",
 	PreRunE: cmdutil.MinimumNArgsAndUUID(1),
 	RunE: func(cmd *cobra.Command, args []string) error {
 		track, _ := cmd.Flags().GetBool("track")
diff --git a/cmd/platform/allocator/list.go b/cmd/platform/allocator/list.go
index f7fa86f..475eea0 100644
--- a/cmd/platform/allocator/list.go
+++ b/cmd/platform/allocator/list.go
@@ -93,26 +93,12 @@ var listAllocatorsCmd = &cobra.Command{
 	RunE:    listAllocators,
 }
 
-// CommandPlural represents the list action for allocator.
-var CommandPlural = &cobra.Command{
-	Use:     "allocators",
-	Short:   allocatorListMessage,
-	Long:    allocatorListMessage + allocatorQueryExample + allocatorFilterExample,
-	PreRunE: cobra.MaximumNArgs(0),
-	RunE:    listAllocators,
-}
-
 func init() {
 	Command.AddCommand(listAllocatorsCmd)
 
-	CommandPlural.Flags().StringArrayP("filter", "f", nil, allocatorFilterCmdMessage)
 	listAllocatorsCmd.Flags().StringArrayP("filter", "f", nil, allocatorFilterCmdMessage)
-	CommandPlural.Flags().Bool("unhealthy", false, "Searches for unhealthy allocators")
 	listAllocatorsCmd.Flags().Bool("unhealthy", false, "Searches for unhealthy allocators")
-	CommandPlural.Flags().String("query", "", queryFlagHelp)
 	listAllocatorsCmd.Flags().String("query", "", queryFlagHelp)
-	CommandPlural.Flags().Bool("metadata", false, "Shows allocators metadata")
 	listAllocatorsCmd.Flags().Bool("metadata", false, "Shows allocators metadata")
-	CommandPlural.Flags().Bool("all", false, "Shows all allocators (including those with no instances or not connected)")
 	listAllocatorsCmd.Flags().Bool("all", false, "Shows all allocators (including those with no instances or not connected)")
 }
diff --git a/cmd/platform/constructor/command.go b/cmd/platform/constructor/command.go
index 1738a4b..1a01299 100644
--- a/cmd/platform/constructor/command.go
+++ b/cmd/platform/constructor/command.go
@@ -43,14 +43,6 @@ var Command = &cobra.Command{
 	},
 }
 
-// CommandPlural is the list action of constructor.
-var CommandPlural = &cobra.Command{
-	Use:     "constructors",
-	Short:   constructorListMessage,
-	PreRunE: cobra.MaximumNArgs(0),
-	RunE:    listConstructors,
-}
-
 func listConstructors(cmd *cobra.Command, args []string) error {
 	a, err := constructor.List(constructor.Params{
 		API: ecctl.Get().API,
diff --git a/cmd/platform/enrollment-token/command.go b/cmd/platform/enrollment-token/command.go
index 76233ff..ae02636 100644
--- a/cmd/platform/enrollment-token/command.go
+++ b/cmd/platform/enrollment-token/command.go
@@ -102,14 +102,6 @@ var listTokensCmd = &cobra.Command{
 	RunE:    listTokens,
 }
 
-// CommandPlural is the plural list action.
-var CommandPlural = &cobra.Command{
-	Use:     "enrollment-tokens",
-	Short:   "Retrieves a list of persistent enrollment tokens",
-	PreRunE: cobra.MaximumNArgs(0),
-	RunE:    listTokens,
-}
-
 func init() {
 	Command.AddCommand(
 		createTokenCmd,
diff --git a/cmd/platform/platform.go b/cmd/platform/platform.go
index 9a68a36..868ad8b 100644
--- a/cmd/platform/platform.go
+++ b/cmd/platform/platform.go
@@ -62,19 +62,14 @@ var infoCmd = &cobra.Command{
 func init() {
 	Command.AddCommand(
 		cmdallocator.Command,
-		cmdallocator.CommandPlural,
 		cmdconstructor.Command,
-		cmdconstructor.CommandPlural,
 		cmddeploymentdemplate.Command,
 		cmdenrollmenttoken.Command,
-		cmdenrollmenttoken.CommandPlural,
 		cmdinstanceconfig.Command,
 		cmdproxy.Command,
-		cmdproxy.CommandPlural,
 		cmdrepository.Command,
 		cmdrole.Command,
 		cmdstack.Command,
-		cmdstack.CommandPlural,
 	)
 
 	Command.AddCommand(infoCmd)
diff --git a/cmd/platform/proxy/command.go b/cmd/platform/proxy/command.go
index d11c1a8..cf8b4b5 100644
--- a/cmd/platform/proxy/command.go
+++ b/cmd/platform/proxy/command.go
@@ -42,14 +42,6 @@ var Command = &cobra.Command{
 	},
 }
 
-// CommandPlural is the list action for proxies
-var CommandPlural = &cobra.Command{
-	Use:     "proxies",
-	Short:   proxyListMessage,
-	PreRunE: cobra.MaximumNArgs(0),
-	RunE:    listProxies,
-}
-
 func listProxies(cmd *cobra.Command, args []string) error {
 	a, err := proxy.List(proxy.Params{
 		API: ecctl.Get().API,
@@ -91,6 +83,5 @@ func init() {
 		listProxiesCmd,
 		showProxyCmd,
 		cmdfilteredgroup.Command,
-		cmdfilteredgroup.CommandPlural,
 	)
 }
diff --git a/cmd/platform/proxy/filteredgroup/list.go b/cmd/platform/proxy/filteredgroup/list.go
index c0d02b5..d4172e3 100644
--- a/cmd/platform/proxy/filteredgroup/list.go
+++ b/cmd/platform/proxy/filteredgroup/list.go
@@ -49,14 +49,6 @@ var platformProxyFilteredGroupsListCmd = &cobra.Command{
 	RunE:    listProxyFilteredGroups,
 }
 
-// CommandPlural represents the list action for proxies filtered group.
-var CommandPlural = &cobra.Command{
-	Use:     "filtered-groups",
-	Short:   filteredGroupsUse,
-	PreRunE: cobra.MaximumNArgs(0),
-	RunE:    listProxyFilteredGroups,
-}
-
 func init() {
 	Command.AddCommand(
 		platformProxyFilteredGroupsListCmd,
diff --git a/cmd/platform/stack/command.go b/cmd/platform/stack/command.go
index c055b1d..6d649fd 100644
--- a/cmd/platform/stack/command.go
+++ b/cmd/platform/stack/command.go
@@ -37,14 +37,6 @@ var Command = &cobra.Command{
 	},
 }
 
-// CommandPlural is the list action for stack.
-var CommandPlural = &cobra.Command{
-	Use:     "stacks",
-	Short:   "Lists Elastic StackPacks",
-	PreRunE: cobra.MaximumNArgs(0),
-	RunE:    listStackPacks,
-}
-
 var stackListCmd = &cobra.Command{
 	Use:     "list",
 	Short:   "Lists Elastic StackPacks",
@@ -123,5 +115,4 @@ func init() {
 	)
 
 	stackListCmd.Flags().BoolP("deleted", "d", false, "Shows deleted stackpacks")
-	CommandPlural.Flags().BoolP("deleted", "d", false, "Shows deleted stackpacks")
 }
diff --git a/docs/ecctl_deployment.md b/docs/ecctl_deployment.md
index 82a5baa..6ada062 100644
--- a/docs/ecctl_deployment.md
+++ b/docs/ecctl_deployment.md
@@ -44,7 +44,7 @@ ecctl deployment [flags]
 * [ecctl deployment create](ecctl_deployment_create.md)	 - Creates a deployment from a file definition, allowing certain flag overrides
 * [ecctl deployment delete](ecctl_deployment_delete.md)	 - Deletes a previously stopped deployment from the platform
 * [ecctl deployment elasticsearch](ecctl_deployment_elasticsearch.md)	 - Manages Elasticsearch clusters
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 * [ecctl deployment list](ecctl_deployment_list.md)	 - Lists the platform's deployments
 * [ecctl deployment note](ecctl_deployment_note.md)	 - Manages a deployment's notes
 * [ecctl deployment restore](ecctl_deployment_restore.md)	 - Restores a previously shut down deployment and all of its associated sub-resources
diff --git a/docs/ecctl_deployment_create.md b/docs/ecctl_deployment_create.md
index b0610dd..3a9e0a9 100644
--- a/docs/ecctl_deployment_create.md
+++ b/docs/ecctl_deployment_create.md
@@ -74,7 +74,6 @@ $ cat deployment_example.json
                 "ref_id": "my-kibana-instance",
                 "elasticsearch_cluster_ref_id": "my-es-cluster",
                 "plan": {
-                    "zone_count": 1,
                     "kibana": {
                         "version": "6.8.4"
                     },
@@ -82,7 +81,8 @@ $ cat deployment_example.json
                         {
                             "instance_configuration_id": "kibana",
                             "memory_per_node": 1024,
-                            "node_count_per_zone": 1
+                            "node_count_per_zone": 1,
+                            "zone_count": 1
                         }
                     ]
                 }
diff --git a/docs/ecctl_deployment_kibana.md b/docs/ecctl_deployment_kibana.md
index 9d891c4..0b3fe2e 100644
--- a/docs/ecctl_deployment_kibana.md
+++ b/docs/ecctl_deployment_kibana.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana
 
-Manages Kibana clusters
+Manages Kibana instances
 
 ### Synopsis
 
-Manages Kibana clusters
+Manages Kibana instances
 
 ```
 ecctl deployment kibana [flags]
@@ -40,16 +40,16 @@ ecctl deployment kibana [flags]
 ### SEE ALSO
 
 * [ecctl deployment](ecctl_deployment.md)	 - Manages deployments
-* [ecctl deployment kibana create](ecctl_deployment_kibana_create.md)	 - Creates a Kibana Cluster
-* [ecctl deployment kibana delete](ecctl_deployment_kibana_delete.md)	 - Deletes a Kibana cluster
+* [ecctl deployment kibana create](ecctl_deployment_kibana_create.md)	 - Creates a Kibana instance
+* [ecctl deployment kibana delete](ecctl_deployment_kibana_delete.md)	 - Deletes a Kibana instance
 * [ecctl deployment kibana enable](ecctl_deployment_kibana_enable.md)	 - Enables a kibana instance in the selected deployment
-* [ecctl deployment kibana list](ecctl_deployment_kibana_list.md)	 - Returns the list of clusters for a region
+* [ecctl deployment kibana list](ecctl_deployment_kibana_list.md)	 - Returns the list of kibana instances
 * [ecctl deployment kibana plan](ecctl_deployment_kibana_plan.md)	 - Manages Kibana plans
-* [ecctl deployment kibana reallocate](ecctl_deployment_kibana_reallocate.md)	 - Reallocates the Kibana cluster nodes
-* [ecctl deployment kibana restart](ecctl_deployment_kibana_restart.md)	 - Restarts a Kibana cluster
-* [ecctl deployment kibana resync](ecctl_deployment_kibana_resync.md)	 - Resynchronizes the search index and cache for the selected Kibana cluster
+* [ecctl deployment kibana reallocate](ecctl_deployment_kibana_reallocate.md)	 - Reallocates Kibana instances
+* [ecctl deployment kibana restart](ecctl_deployment_kibana_restart.md)	 - Restarts a Kibana instance
+* [ecctl deployment kibana resync](ecctl_deployment_kibana_resync.md)	 - Resynchronizes the search index and cache for the selected Kibana instance
 * [ecctl deployment kibana show](ecctl_deployment_kibana_show.md)	 - Returns the cluster information
-* [ecctl deployment kibana start](ecctl_deployment_kibana_start.md)	 - Starts a Kibana cluster
-* [ecctl deployment kibana stop](ecctl_deployment_kibana_stop.md)	 - Downscales a Kibana cluster, so that it no longer contains any running instances.
-* [ecctl deployment kibana upgrade](ecctl_deployment_kibana_upgrade.md)	 - Upgrades the Kibana cluster to the same version as the Elasticsearch one
+* [ecctl deployment kibana start](ecctl_deployment_kibana_start.md)	 - Starts a Kibana instance
+* [ecctl deployment kibana stop](ecctl_deployment_kibana_stop.md)	 - Downscales a Kibana instance
+* [ecctl deployment kibana upgrade](ecctl_deployment_kibana_upgrade.md)	 - Upgrades the Kibana instance to the same version as the Elasticsearch one
 
diff --git a/docs/ecctl_deployment_kibana_create.md b/docs/ecctl_deployment_kibana_create.md
index 9782d87..b5d444e 100644
--- a/docs/ecctl_deployment_kibana_create.md
+++ b/docs/ecctl_deployment_kibana_create.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana create
 
-Creates a Kibana Cluster
+Creates a Kibana instance
 
 ### Synopsis
 
-Creates a Kibana Cluster
+Creates a Kibana instance
 
 ```
 ecctl deployment kibana create -f <definition.json> [flags]
@@ -13,10 +13,10 @@ ecctl deployment kibana create -f <definition.json> [flags]
 ### Options
 
 ```
-  -f, --file-template string   JSON file that contains the Kibana cluster definition
+  -f, --file-template string   JSON file that contains the Kibana instance definition
   -h, --help                   help for create
       --id string              Optional ID to set for the Elasticsearch cluster (Overrides ID if present).
-      --name string            Optional name to set for the Kibana cluster (Overrides name if present).
+      --name string            Optional name to set for the Kibana instance (Overrides name if present).
   -t, --track                  Tracks the progress of the performed task
 ```
 
@@ -43,5 +43,5 @@ ecctl deployment kibana create -f <definition.json> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_delete.md b/docs/ecctl_deployment_kibana_delete.md
index e376f66..186c79c 100644
--- a/docs/ecctl_deployment_kibana_delete.md
+++ b/docs/ecctl_deployment_kibana_delete.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana delete
 
-Deletes a Kibana cluster
+Deletes a Kibana instance
 
 ### Synopsis
 
-Deletes a Kibana cluster
+Deletes a Kibana instance
 
 ```
 ecctl deployment kibana delete <cluster id> [flags]
@@ -41,5 +41,5 @@ ecctl deployment kibana delete <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_enable.md b/docs/ecctl_deployment_kibana_enable.md
index b5b2e54..c3ad077 100644
--- a/docs/ecctl_deployment_kibana_enable.md
+++ b/docs/ecctl_deployment_kibana_enable.md
@@ -40,5 +40,5 @@ ecctl deployment kibana enable <deployment id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_list.md b/docs/ecctl_deployment_kibana_list.md
index a2e6610..f9e2ce3 100644
--- a/docs/ecctl_deployment_kibana_list.md
+++ b/docs/ecctl_deployment_kibana_list.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana list
 
-Returns the list of clusters for a region
+Returns the list of kibana instances
 
 ### Synopsis
 
-Returns the list of clusters for a region
+Returns the list of kibana instances
 
 ```
 ecctl deployment kibana list [flags]
@@ -15,7 +15,7 @@ ecctl deployment kibana list [flags]
 ```
   -h, --help             help for list
   -m, --metadata         Shows deployment metadata
-  -s, --size int         Sets the upper limit of Kibana clusters to return (default 100)
+  -s, --size int         Sets the upper limit of Kibana instances to return (default 100)
   -v, --version string   Filters per version
 ```
 
@@ -42,5 +42,5 @@ ecctl deployment kibana list [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_plan.md b/docs/ecctl_deployment_kibana_plan.md
index 6e30109..a02fb64 100644
--- a/docs/ecctl_deployment_kibana_plan.md
+++ b/docs/ecctl_deployment_kibana_plan.md
@@ -39,6 +39,6 @@ ecctl deployment kibana plan [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 * [ecctl deployment kibana plan monitor](ecctl_deployment_kibana_plan_monitor.md)	 - Monitors the pending plan
 
diff --git a/docs/ecctl_deployment_kibana_reallocate.md b/docs/ecctl_deployment_kibana_reallocate.md
index 2d79a18..44ee588 100644
--- a/docs/ecctl_deployment_kibana_reallocate.md
+++ b/docs/ecctl_deployment_kibana_reallocate.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana reallocate
 
-Reallocates the Kibana cluster nodes
+Reallocates Kibana instances
 
 ### Synopsis
 
-Reallocates the Kibana cluster nodes. If no "--instances" are specified all of the nodes will be restarted
+Reallocates Kibana instances. If no "--instances" are specified all of the nodes will be restarted
 
 ```
 ecctl deployment kibana reallocate <cluster id> [flags]
@@ -40,5 +40,5 @@ ecctl deployment kibana reallocate <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_restart.md b/docs/ecctl_deployment_kibana_restart.md
index a6a7fa6..903c6a8 100644
--- a/docs/ecctl_deployment_kibana_restart.md
+++ b/docs/ecctl_deployment_kibana_restart.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana restart
 
-Restarts a Kibana cluster
+Restarts a Kibana instance
 
 ### Synopsis
 
-Restarts a Kibana cluster
+Restarts a Kibana instance
 
 ```
 ecctl deployment kibana restart <cluster id> [flags]
@@ -40,5 +40,5 @@ ecctl deployment kibana restart <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_resync.md b/docs/ecctl_deployment_kibana_resync.md
index 7affb4c..afb2ef0 100644
--- a/docs/ecctl_deployment_kibana_resync.md
+++ b/docs/ecctl_deployment_kibana_resync.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana resync
 
-Resynchronizes the search index and cache for the selected Kibana cluster
+Resynchronizes the search index and cache for the selected Kibana instance
 
 ### Synopsis
 
-Resynchronizes the search index and cache for the selected Kibana cluster
+Resynchronizes the search index and cache for the selected Kibana instance
 
 ```
 ecctl deployment kibana resync <cluster id> [flags]
@@ -39,5 +39,5 @@ ecctl deployment kibana resync <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_show.md b/docs/ecctl_deployment_kibana_show.md
index 83562f2..33adc11 100644
--- a/docs/ecctl_deployment_kibana_show.md
+++ b/docs/ecctl_deployment_kibana_show.md
@@ -44,5 +44,5 @@ ecctl deployment kibana show <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_start.md b/docs/ecctl_deployment_kibana_start.md
index cd05c49..bf81899 100644
--- a/docs/ecctl_deployment_kibana_start.md
+++ b/docs/ecctl_deployment_kibana_start.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana start
 
-Starts a Kibana cluster
+Starts a Kibana instance
 
 ### Synopsis
 
-Starts a Kibana cluster
+Starts a Kibana instance
 
 ```
 ecctl deployment kibana start <cluster id> [flags]
@@ -40,5 +40,5 @@ ecctl deployment kibana start <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_stop.md b/docs/ecctl_deployment_kibana_stop.md
index 64ebfa5..12e85f7 100644
--- a/docs/ecctl_deployment_kibana_stop.md
+++ b/docs/ecctl_deployment_kibana_stop.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana stop
 
-Downscales a Kibana cluster, so that it no longer contains any running instances.
+Downscales a Kibana instance
 
 ### Synopsis
 
-Downscales a Kibana cluster, so that it no longer contains any running instances.
+Downscales a Kibana instance
 
 ```
 ecctl deployment kibana stop <cluster id> [flags]
@@ -40,5 +40,5 @@ ecctl deployment kibana stop <cluster id> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_deployment_kibana_upgrade.md b/docs/ecctl_deployment_kibana_upgrade.md
index 90ab74e..787bd26 100644
--- a/docs/ecctl_deployment_kibana_upgrade.md
+++ b/docs/ecctl_deployment_kibana_upgrade.md
@@ -1,10 +1,10 @@
 ## ecctl deployment kibana upgrade
 
-Upgrades the Kibana cluster to the same version as the Elasticsearch one
+Upgrades the Kibana instance to the same version as the Elasticsearch one
 
 ### Synopsis
 
-Upgrades the Kibana cluster to the same version as the Elasticsearch one
+Upgrades the Kibana instance to the same version as the Elasticsearch one
 
 ```
 ecctl deployment kibana upgrade <cluster id>> [flags]
@@ -40,5 +40,5 @@ ecctl deployment kibana upgrade <cluster id>> [flags]
 
 ### SEE ALSO
 
-* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana clusters
+* [ecctl deployment kibana](ecctl_deployment_kibana.md)	 - Manages Kibana instances
 
diff --git a/docs/ecctl_platform.md b/docs/ecctl_platform.md
index f9e5577..492da18 100644
--- a/docs/ecctl_platform.md
+++ b/docs/ecctl_platform.md
@@ -41,18 +41,13 @@ ecctl platform [flags]
 
 * [ecctl](ecctl.md)	 - Elastic Cloud Control
 * [ecctl platform allocator](ecctl_platform_allocator.md)	 - Manages allocators
-* [ecctl platform allocators](ecctl_platform_allocators.md)	 - Returns all allocators that have instances or are connected in the region. Use --all flag or --output json to show all. Use --query to match any of the allocators properties.
 * [ecctl platform constructor](ecctl_platform_constructor.md)	 - Manages constructors
-* [ecctl platform constructors](ecctl_platform_constructors.md)	 - Returns all of the constructors in the region
 * [ecctl platform deployment-template](ecctl_platform_deployment-template.md)	 - Manages deployment templates
 * [ecctl platform enrollment-token](ecctl_platform_enrollment-token.md)	 - Manages tokens
-* [ecctl platform enrollment-tokens](ecctl_platform_enrollment-tokens.md)	 - Retrieves a list of persistent enrollment tokens
 * [ecctl platform info](ecctl_platform_info.md)	 - Shows information about the platform
 * [ecctl platform instance-configuration](ecctl_platform_instance-configuration.md)	 - Manages instance configurations
-* [ecctl platform proxies](ecctl_platform_proxies.md)	 - Returns all of the proxies in the region
 * [ecctl platform proxy](ecctl_platform_proxy.md)	 - Manages proxies
 * [ecctl platform repository](ecctl_platform_repository.md)	 - Manages snapshot repositories
 * [ecctl platform role](ecctl_platform_role.md)	 - Manages platform roles
 * [ecctl platform stack](ecctl_platform_stack.md)	 - Manages Elastic StackPacks
-* [ecctl platform stacks](ecctl_platform_stacks.md)	 - Lists Elastic StackPacks
 
diff --git a/docs/ecctl_platform_allocators.md b/docs/ecctl_platform_allocators.md
deleted file mode 100644
index ff0920b..0000000
--- a/docs/ecctl_platform_allocators.md
+++ /dev/null
@@ -1,68 +0,0 @@
-## ecctl platform allocators
-
-Returns all allocators that have instances or are connected in the region. Use --all flag or --output json to show all. Use --query to match any of the allocators properties.
-
-### Synopsis
-
-Returns all allocators that have instances or are connected in the region. Use --all flag or --output json to show all. Use --query to match any of the allocators properties.
-
-Query examples:
-
-	* Allocators set to maintenance mode: --query status.maintenance_mode:true
-
-	* Allocators with more than 10GB of capacity: --query capacity.memory.total:\>10240
-
-  Read all the simple query string syntax in https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax
-	
-
-Filter examples:
-
-	* Allocators with instance type i3.large : --filter instanceType:i3.large
-
-	* Allocators with instance type i3.large AND instance family gcp.highcpu.1 : --filter instanceType:i3.large --filter instanceFamily:gcp.highcpu.1
-
-Filter is a post-query action and doesn't support OR. All filter arguments are applied as AND.
-  
-Filter and query flags can be used in combination.
-	
-
-```
-ecctl platform allocators [flags]
-```
-
-### Options
-
-```
-      --all                  Shows all allocators (including those with no instances or not connected)
-  -f, --filter stringArray   Post-query filter out allocators based on metadata tags, for instance 'instanceType:i3.large'
-  -h, --help                 help for allocators
-      --metadata             Shows allocators metadata
-      --query string         Searches allocators using an Elasticsearch search query string query
-      --unhealthy            Searches for unhealthy allocators
-```
-
-### Options inherited from parent commands
-
-```
-      --apikey string      API key to use to authenticate (If empty will look for EC_APIKEY environment variable)
-      --config string      Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
-      --force              Do not ask for confirmation
-      --format string      Formats the output using a Go template
-      --host string        Base URL to use (default "https://api.elastic-cloud.com")
-      --insecure           Skips all TLS validation
-      --message string     A message to set on cluster operation
-      --output string      Output format [text|json] (default "text")
-      --pass string        Password to use to authenticate (If empty will look for EC_PASS environment variable)
-      --pprof              Enables pprofing and saves the profile to pprof-20060102150405
-  -q, --quiet              Suppresses the configuration file used for the run, if any
-      --region string      Elastic Cloud region
-      --timeout duration   Timeout to use on all HTTP calls (default 30s)
-      --trace              Enables tracing saves the trace to trace-20060102150405
-      --user string        Username to use to authenticate (If empty will look for EC_USER environment variable)
-      --verbose            Enable verbose mode
-```
-
-### SEE ALSO
-
-* [ecctl platform](ecctl_platform.md)	 - Manages the platform
-
diff --git a/docs/ecctl_platform_constructors.md b/docs/ecctl_platform_constructors.md
deleted file mode 100644
index ac11ce1..0000000
--- a/docs/ecctl_platform_constructors.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## ecctl platform constructors
-
-Returns all of the constructors in the region
-
-### Synopsis
-
-Returns all of the constructors in the region
-
-```
-ecctl platform constructors [flags]
-```
-
-### Options
-
-```
-  -h, --help   help for constructors
-```
-
-### Options inherited from parent commands
-
-```
-      --apikey string      API key to use to authenticate (If empty will look for EC_APIKEY environment variable)
-      --config string      Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
-      --force              Do not ask for confirmation
-      --format string      Formats the output using a Go template
-      --host string        Base URL to use (default "https://api.elastic-cloud.com")
-      --insecure           Skips all TLS validation
-      --message string     A message to set on cluster operation
-      --output string      Output format [text|json] (default "text")
-      --pass string        Password to use to authenticate (If empty will look for EC_PASS environment variable)
-      --pprof              Enables pprofing and saves the profile to pprof-20060102150405
-  -q, --quiet              Suppresses the configuration file used for the run, if any
-      --region string      Elastic Cloud region
-      --timeout duration   Timeout to use on all HTTP calls (default 30s)
-      --trace              Enables tracing saves the trace to trace-20060102150405
-      --user string        Username to use to authenticate (If empty will look for EC_USER environment variable)
-      --verbose            Enable verbose mode
-```
-
-### SEE ALSO
-
-* [ecctl platform](ecctl_platform.md)	 - Manages the platform
-
diff --git a/docs/ecctl_platform_enrollment-tokens.md b/docs/ecctl_platform_enrollment-tokens.md
deleted file mode 100644
index 6cb3286..0000000
--- a/docs/ecctl_platform_enrollment-tokens.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## ecctl platform enrollment-tokens
-
-Retrieves a list of persistent enrollment tokens
-
-### Synopsis
-
-Retrieves a list of persistent enrollment tokens
-
-```
-ecctl platform enrollment-tokens [flags]
-```
-
-### Options
-
-```
-  -h, --help   help for enrollment-tokens
-```
-
-### Options inherited from parent commands
-
-```
-      --apikey string      API key to use to authenticate (If empty will look for EC_APIKEY environment variable)
-      --config string      Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
-      --force              Do not ask for confirmation
-      --format string      Formats the output using a Go template
-      --host string        Base URL to use (default "https://api.elastic-cloud.com")
-      --insecure           Skips all TLS validation
-      --message string     A message to set on cluster operation
-      --output string      Output format [text|json] (default "text")
-      --pass string        Password to use to authenticate (If empty will look for EC_PASS environment variable)
-      --pprof              Enables pprofing and saves the profile to pprof-20060102150405
-  -q, --quiet              Suppresses the configuration file used for the run, if any
-      --region string      Elastic Cloud region
-      --timeout duration   Timeout to use on all HTTP calls (default 30s)
-      --trace              Enables tracing saves the trace to trace-20060102150405
-      --user string        Username to use to authenticate (If empty will look for EC_USER environment variable)
-      --verbose            Enable verbose mode
-```
-
-### SEE ALSO
-
-* [ecctl platform](ecctl_platform.md)	 - Manages the platform
-
diff --git a/docs/ecctl_platform_proxies.md b/docs/ecctl_platform_proxies.md
deleted file mode 100644
index 7b833d2..0000000
--- a/docs/ecctl_platform_proxies.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## ecctl platform proxies
-
-Returns all of the proxies in the region
-
-### Synopsis
-
-Returns all of the proxies in the region
-
-```
-ecctl platform proxies [flags]
-```
-
-### Options
-
-```
-  -h, --help   help for proxies
-```
-
-### Options inherited from parent commands
-
-```
-      --apikey string      API key to use to authenticate (If empty will look for EC_APIKEY environment variable)
-      --config string      Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
-      --force              Do not ask for confirmation
-      --format string      Formats the output using a Go template
-      --host string        Base URL to use (default "https://api.elastic-cloud.com")
-      --insecure           Skips all TLS validation
-      --message string     A message to set on cluster operation
-      --output string      Output format [text|json] (default "text")
-      --pass string        Password to use to authenticate (If empty will look for EC_PASS environment variable)
-      --pprof              Enables pprofing and saves the profile to pprof-20060102150405
-  -q, --quiet              Suppresses the configuration file used for the run, if any
-      --region string      Elastic Cloud region
-      --timeout duration   Timeout to use on all HTTP calls (default 30s)
-      --trace              Enables tracing saves the trace to trace-20060102150405
-      --user string        Username to use to authenticate (If empty will look for EC_USER environment variable)
-      --verbose            Enable verbose mode
-```
-
-### SEE ALSO
-
-* [ecctl platform](ecctl_platform.md)	 - Manages the platform
-
diff --git a/docs/ecctl_platform_proxy.md b/docs/ecctl_platform_proxy.md
index def26d0..814143a 100644
--- a/docs/ecctl_platform_proxy.md
+++ b/docs/ecctl_platform_proxy.md
@@ -41,7 +41,6 @@ ecctl platform proxy [flags]
 
 * [ecctl platform](ecctl_platform.md)	 - Manages the platform
 * [ecctl platform proxy filtered-group](ecctl_platform_proxy_filtered-group.md)	 - Manages proxies filtered group
-* [ecctl platform proxy filtered-groups](ecctl_platform_proxy_filtered-groups.md)	 - Returns all proxies filtered groups in the region
 * [ecctl platform proxy list](ecctl_platform_proxy_list.md)	 - Returns all of the proxies in the region
 * [ecctl platform proxy show](ecctl_platform_proxy_show.md)	 - Returns information about the proxy with given id
 
diff --git a/docs/ecctl_platform_proxy_filtered-groups.md b/docs/ecctl_platform_proxy_filtered-groups.md
deleted file mode 100644
index abc85dd..0000000
--- a/docs/ecctl_platform_proxy_filtered-groups.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## ecctl platform proxy filtered-groups
-
-Returns all proxies filtered groups in the region
-
-### Synopsis
-
-Returns all proxies filtered groups in the region
-
-```
-ecctl platform proxy filtered-groups [flags]
-```
-
-### Options
-
-```
-  -h, --help   help for filtered-groups
-```
-
-### Options inherited from parent commands
-
-```
-      --apikey string      API key to use to authenticate (If empty will look for EC_APIKEY environment variable)
-      --config string      Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
-      --force              Do not ask for confirmation
-      --format string      Formats the output using a Go template
-      --host string        Base URL to use (default "https://api.elastic-cloud.com")
-      --insecure           Skips all TLS validation
-      --message string     A message to set on cluster operation
-      --output string      Output format [text|json] (default "text")
-      --pass string        Password to use to authenticate (If empty will look for EC_PASS environment variable)
-      --pprof              Enables pprofing and saves the profile to pprof-20060102150405
-  -q, --quiet              Suppresses the configuration file used for the run, if any
-      --region string      Elastic Cloud region
-      --timeout duration   Timeout to use on all HTTP calls (default 30s)
-      --trace              Enables tracing saves the trace to trace-20060102150405
-      --user string        Username to use to authenticate (If empty will look for EC_USER environment variable)
-      --verbose            Enable verbose mode
-```
-
-### SEE ALSO
-
-* [ecctl platform proxy](ecctl_platform_proxy.md)	 - Manages proxies
-
diff --git a/docs/ecctl_platform_stacks.md b/docs/ecctl_platform_stacks.md
deleted file mode 100644
index 8bcac71..0000000
--- a/docs/ecctl_platform_stacks.md
+++ /dev/null
@@ -1,44 +0,0 @@
-## ecctl platform stacks
-
-Lists Elastic StackPacks
-
-### Synopsis
-
-Lists Elastic StackPacks
-
-```
-ecctl platform stacks [flags]
-```
-
-### Options
-
-```
-  -d, --deleted   Shows deleted stackpacks
-  -h, --help      help for stacks
-```
-
-### Options inherited from parent commands
-
-```
-      --apikey string      API key to use to authenticate (If empty will look for EC_APIKEY environment variable)
-      --config string      Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
-      --force              Do not ask for confirmation
-      --format string      Formats the output using a Go template
-      --host string        Base URL to use (default "https://api.elastic-cloud.com")
-      --insecure           Skips all TLS validation
-      --message string     A message to set on cluster operation
-      --output string      Output format [text|json] (default "text")
-      --pass string        Password to use to authenticate (If empty will look for EC_PASS environment variable)
-      --pprof              Enables pprofing and saves the profile to pprof-20060102150405
-  -q, --quiet              Suppresses the configuration file used for the run, if any
-      --region string      Elastic Cloud region
-      --timeout duration   Timeout to use on all HTTP calls (default 30s)
-      --trace              Enables tracing saves the trace to trace-20060102150405
-      --user string        Username to use to authenticate (If empty will look for EC_USER environment variable)
-      --verbose            Enable verbose mode
-```
-
-### SEE ALSO
-
-* [ecctl platform](ecctl_platform.md)	 - Manages the platform
-
diff --git a/go.mod b/go.mod
index caa4afb..bf894d5 100644
--- a/go.mod
+++ b/go.mod
@@ -8,7 +8,7 @@ require (
 	github.com/chzyer/logex v1.1.10 // indirect
 	github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect
 	github.com/davecgh/go-spew v1.1.1
-	github.com/elastic/cloud-sdk-go v1.0.0-bc3
+	github.com/elastic/cloud-sdk-go v1.0.0-bc4
 	github.com/elastic/uptd v1.0.0
 	github.com/ghodss/yaml v1.0.0
 	github.com/go-openapi/runtime v0.19.8
diff --git a/go.sum b/go.sum
index e856a43..fb4cc69 100644
--- a/go.sum
+++ b/go.sum
@@ -9,8 +9,10 @@ github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tN
 github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
 github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
 github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
+github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM=
 github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
 github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
 github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA=
 github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
 github.com/asaskevich/govalidator v0.0.0-20170425121227-4918b99a7cb9/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
@@ -49,8 +51,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZm
 github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
 github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
 github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
-github.com/elastic/cloud-sdk-go v1.0.0-bc3 h1:giV/eTC5ZpovZr124o6/2uB/OP4CcmISTSSsd4+Rgd0=
-github.com/elastic/cloud-sdk-go v1.0.0-bc3/go.mod h1:zhBhuQcIJKsXh24Rf+LNkJdgRvaIJo7Gn9h/TWL0Kks=
+github.com/elastic/cloud-sdk-go v1.0.0-bc4 h1:8Gc/gFos+dJv992c8FQ06X9Mx080p2ceuiB1dUPWeUA=
+github.com/elastic/cloud-sdk-go v1.0.0-bc4/go.mod h1:19tuRaJglGTECDJfiWEDMOVj23ZL+9+YYoIV1fZIGzc=
 github.com/elastic/uptd v1.0.0 h1:oUhbbTK6hjFYB5w5dwjo1HtbqrWyLiqj+6Sb05oawU8=
 github.com/elastic/uptd v1.0.0/go.mod h1:2Pm07gLal/a/gTPq3el2QgOjoxu97pB2I17AprXxa48=
 github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
@@ -89,6 +91,8 @@ github.com/go-openapi/jsonreference v0.18.0 h1:oP2OUNdG1l2r5kYhrfVMXO54gWmzcfAwP
 github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I=
 github.com/go-openapi/jsonreference v0.19.2 h1:o20suLFB4Ri0tuzpWtyHlh7E7HnkqTNLq6aR6WVNS1w=
 github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc=
+github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o=
+github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8=
 github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU=
 github.com/go-openapi/loads v0.18.0 h1:2A3goxrC4KuN8ZrMKHCqAAugtq6A6WfXVfOIKUbZ4n0=
 github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU=
@@ -96,12 +100,12 @@ github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf
 github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs=
 github.com/go-openapi/loads v0.19.3 h1:jwIoahqCmaA5OBoc/B+1+Mu2L0Gr8xYQnbeyQEo/7b0=
 github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI=
+github.com/go-openapi/loads v0.19.4 h1:5I4CCSqoWzT+82bBkNIvmLc0UOsoKKQ4Fz+3VxOB7SY=
+github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk=
 github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA=
 github.com/go-openapi/runtime v0.19.0 h1:sU6pp4dSV2sGlNKKyHxZzi1m1kG4WnYtWcJ+HYbygjE=
 github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64=
 github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4=
-github.com/go-openapi/runtime v0.19.7 h1:b2zcE9GCjDVtguugU7+S95vkHjwQEjz/lB+8LOuA9Nw=
-github.com/go-openapi/runtime v0.19.7/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo=
 github.com/go-openapi/runtime v0.19.8 h1:la3rOpJ+UnJSCgsgMv/xKHCMCpKJtFVa7ai4mPnV2ts=
 github.com/go-openapi/runtime v0.19.8/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo=
 github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI=
@@ -130,8 +134,8 @@ github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+
 github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA=
 github.com/go-openapi/validate v0.19.3 h1:PAH/2DylwWcIU1s0Y7k3yNmeAgWOcKrNE2Q7Ww/kCg4=
 github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo=
-github.com/go-openapi/validate v0.19.4 h1:LGjO87VyXY3bIKjlYpXSFuLRG2mTeuYlZyeNwFFWpyM=
-github.com/go-openapi/validate v0.19.4/go.mod h1:BkJ0ZmXui7yB0bJXWSXgLPNTmbLVeX/3D1xn/N9mMUM=
+github.com/go-openapi/validate v0.19.5 h1:QhCBKRYqZR+SKo4gl1lPhPahope8/RLt6EVgY8X80w0=
+github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4=
 github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
 github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
 github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
@@ -191,6 +195,8 @@ github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN
 github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
 github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8=
 github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
+github.com/mailru/easyjson v0.7.0 h1:aizVhC/NAAcKWb+5QsU1iNOZb4Yws5UO2I+aIprQITM=
+github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs=
 github.com/marclop/elasticsearch-cli v0.0.0-20190212132418-ee09f7ae57f1 h1:AjKJSp3BJvuT8IZI0qmK4UtST/Gl+W+ohf7QO87Xfd4=
 github.com/marclop/elasticsearch-cli v0.0.0-20190212132418-ee09f7ae57f1/go.mod h1:5IsNi9k3pZY5PtppCpl0QRBsmmtUOb4vJMoky6DXjy8=
 github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
@@ -227,6 +233,7 @@ github.com/russross/blackfriday v0.0.0-20170728175326-4048872b16cc h1:Ng688TEbTG
 github.com/russross/blackfriday v0.0.0-20170728175326-4048872b16cc/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
 github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
 github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
+github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
 github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
 github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
 github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
@@ -248,8 +255,6 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
 github.com/spf13/viper v1.0.0/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM=
 github.com/spf13/viper v1.3.2 h1:VUFqw5KcqRf7i70GOzW7N+Q7+gxVBkSSqiXB12+JQ4M=
 github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
-github.com/spf13/viper v1.4.0 h1:yXHLWeravcrgGyFSyCgdYpXQ9dR9c/WED3pg1RhxqEU=
-github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
 github.com/spf13/viper v1.5.0 h1:GpsTwfsQ27oS/Aha/6d1oD7tpKIqWnOA6tgOX9HHkt4=
 github.com/spf13/viper v1.5.0/go.mod h1:AkYRkVJF8TkSG/xet6PzXX+l39KhhXa2pdqVSxnTcn4=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -268,6 +273,7 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
 github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
 github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 h1:3SVOIvH7Ae1KRYyQWRjXWJEA9sS/c/pjvH++55Gr648=
 github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
+github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw=
 github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
 github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow=
 github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
@@ -275,6 +281,8 @@ go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
 go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
 go.mongodb.org/mongo-driver v1.1.1 h1:Sq1fR+0c58RME5EoqKdjkiQAmPjmfHlZOoRI6fTUOcs=
 go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
+go.mongodb.org/mongo-driver v1.1.2 h1:jxcFYjlkl8xaERsgLo+RNquI0epW6zuy/ZRQs6jnrFA=
+go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
 go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
 go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
 go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
@@ -336,6 +344,7 @@ golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxb
 golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190211224914-44bee7e801e4/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
 golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
diff --git a/pkg/deployment/kibana/enable.go b/pkg/deployment/kibana/enable.go
index d2e4cc8..dadc23a 100644
--- a/pkg/deployment/kibana/enable.go
+++ b/pkg/deployment/kibana/enable.go
@@ -26,7 +26,7 @@ import (
 	"github.com/elastic/ecctl/pkg/util"
 )
 
-// Enable creates a new kibana cluster in the specified deployment
+// Enable creates a new kibana instance in the specified deployment
 func Enable(params DeploymentParams) (*models.ClusterCrudResponse, error) {
 	if err := params.Validate(); err != nil {
 		return nil, err
diff --git a/pkg/deployment/kibana/read.go b/pkg/deployment/kibana/read.go
index d3e1d13..bfb327c 100644
--- a/pkg/deployment/kibana/read.go
+++ b/pkg/deployment/kibana/read.go
@@ -56,7 +56,7 @@ func (params ListParams) Validate() error {
 	return merr.ErrorOrNil()
 }
 
-// Get returns the kibana cluster
+// Get returns the kibana instance
 func Get(params ClusterParams) (*models.KibanaClusterInfo, error) {
 	if err := params.Validate(); err != nil {
 		return nil, err
@@ -79,7 +79,7 @@ func Get(params ClusterParams) (*models.KibanaClusterInfo, error) {
 	return res.Payload, nil
 }
 
-// List lists all the kibana clusters matching the filters
+// List lists all the kibana instances matching the filters
 func List(params ListParams) (*models.KibanaClustersInfo, error) {
 	if err := params.Validate(); err != nil {
 		return nil, err
diff --git a/pkg/deployment/kibana/reallocate.go b/pkg/deployment/kibana/reallocate.go
index f217286..26adce1 100644
--- a/pkg/deployment/kibana/reallocate.go
+++ b/pkg/deployment/kibana/reallocate.go
@@ -49,7 +49,7 @@ func (params ReallocateParams) Validate() error {
 	return merr.ErrorOrNil()
 }
 
-// Reallocate will reallocate the Kibana cluster instances, if no
+// Reallocate will reallocate the Kibana instance instances, if no
 // Instances are specified, all of the instances will be moved.
 func Reallocate(params ReallocateParams) error {
 	if err := params.Validate(); err != nil {
diff --git a/pkg/deployment/kibana/restart.go b/pkg/deployment/kibana/restart.go
index 0ef50c2..c451f7d 100644
--- a/pkg/deployment/kibana/restart.go
+++ b/pkg/deployment/kibana/restart.go
@@ -25,7 +25,7 @@ import (
 	"github.com/elastic/ecctl/pkg/util"
 )
 
-// Restart restarts a Kibana cluster
+// Restart restarts a Kibana instance
 func Restart(params DeploymentParams) error {
 	if err := params.Validate(); err != nil {
 		return err
diff --git a/pkg/deployment/kibana/resync.go b/pkg/deployment/kibana/resync.go
index 229ec1a..5107670 100644
--- a/pkg/deployment/kibana/resync.go
+++ b/pkg/deployment/kibana/resync.go
@@ -24,7 +24,7 @@ import (
 )
 
 // Resync forces indexer to immediately resynchronize the search index
-// and cache for a given Kibana cluster.
+// and cache for a given Kibana instance.
 func Resync(params DeploymentParams) error {
 	if err := params.Validate(); err != nil {
 		return err


Test patch:
diff --git a/pkg/deployment/apm/resync_test.go b/pkg/deployment/apm/resync_test.go
index b71ff35..2cf4609 100644
--- a/pkg/deployment/apm/resync_test.go
+++ b/pkg/deployment/apm/resync_test.go
@@ -66,7 +66,7 @@ func TestResync(t *testing.T) {
 					Body:       mock.NewStringBody(`{}`),
 				}}),
 			}},
-			wantErr: errors.New("unknown error (status 403)"),
+			wantErr: errors.New("{}"),
 		},
 		{
 			name: "Fails due to API error",
diff --git a/pkg/deployment/create_test.go b/pkg/deployment/create_test.go
index 8dc7e8f..8abf08f 100644
--- a/pkg/deployment/create_test.go
+++ b/pkg/deployment/create_test.go
@@ -77,12 +77,12 @@ func TestCreate(t *testing.T) {
 				API:     api.NewMock(mock.New500Response(mock.NewStringBody("error"))),
 				Request: &models.DeploymentCreateRequest{},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("error"),
 		},
 		{
 			name: "succeeds",
 			args: args{params: CreateParams{
-				API: api.NewMock(mock.New200Response(mock.NewStringBody(basicESCluster))),
+				API: api.NewMock(mock.New201Response(mock.NewStringBody(basicESCluster))),
 				Request: &models.DeploymentCreateRequest{
 					Name: "my example cluster",
 					Resources: &models.DeploymentCreateResources{
@@ -129,7 +129,7 @@ func TestCreate(t *testing.T) {
 			name: "succeeds with idempotency ID",
 			args: args{params: CreateParams{
 				RequestID: "1232131231",
-				API:       api.NewMock(mock.New200Response(mock.NewStringBody(basicESCluster))),
+				API:       api.NewMock(mock.New201Response(mock.NewStringBody(basicESCluster))),
 				Request: &models.DeploymentCreateRequest{
 					Name: "my example cluster",
 					Resources: &models.DeploymentCreateResources{
diff --git a/pkg/deployment/delete_test.go b/pkg/deployment/delete_test.go
index 3216d05..49ed7b3 100644
--- a/pkg/deployment/delete_test.go
+++ b/pkg/deployment/delete_test.go
@@ -54,7 +54,7 @@ func TestDelete(t *testing.T) {
 				API:          api.NewMock(mock.New500Response(mock.NewStringBody("error"))),
 				DeploymentID: util.ValidClusterID,
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("error"),
 		},
 		{
 			name: "Succeeds",
diff --git a/pkg/deployment/elasticsearch/create_test.go b/pkg/deployment/elasticsearch/create_test.go
index e70c72c..8c4ecae 100644
--- a/pkg/deployment/elasticsearch/create_test.go
+++ b/pkg/deployment/elasticsearch/create_test.go
@@ -225,14 +225,9 @@ func TestCreate(t *testing.T) {
 		{
 			name: "fails when the API returns an error",
 			args: args{params: CreateParams{
-				API: api.NewMock(mock.Response{
-					Response: http.Response{
-						StatusCode: 500,
-						Body:       mock.NewStringBody(`{}`),
-					},
-				}),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{}`))),
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("{}"),
 		},
 		{
 			name: "succeeds with tracking",
diff --git a/pkg/deployment/elasticsearch/delete_test.go b/pkg/deployment/elasticsearch/delete_test.go
index 4fc3238..2338f21 100644
--- a/pkg/deployment/elasticsearch/delete_test.go
+++ b/pkg/deployment/elasticsearch/delete_test.go
@@ -80,7 +80,7 @@ func TestDeleteCluster(t *testing.T) {
 					}),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("{}"),
 		},
 		{
 			name: "fails due to cluster not being stopped",
@@ -104,15 +104,10 @@ func TestDeleteCluster(t *testing.T) {
 			args: args{params: DeleteClusterParams{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("{}"),
 		},
 		{
 			name: "fails due to missing cluster ID",
diff --git a/pkg/deployment/elasticsearch/diagnose_test.go b/pkg/deployment/elasticsearch/diagnose_test.go
index ad8463d..bf871e7 100644
--- a/pkg/deployment/elasticsearch/diagnose_test.go
+++ b/pkg/deployment/elasticsearch/diagnose_test.go
@@ -75,14 +75,14 @@ func TestDiagnose(t *testing.T) {
 									"Content-Type": []string{"application/zip"},
 								},
 								StatusCode: 500,
-								Body:       mock.NewStringBody("something diagnosed"),
+								Body:       mock.NewStringBody("something not diagnosed"),
 							},
 						}),
 					},
 				},
 				buf: new(bytes.Buffer),
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("something not diagnosed"),
 		},
 		{
 			name: "empty params return error",
diff --git a/pkg/deployment/elasticsearch/instances/lifecycle_test.go b/pkg/deployment/elasticsearch/instances/lifecycle_test.go
index 6e58871..d8c13c6 100644
--- a/pkg/deployment/elasticsearch/instances/lifecycle_test.go
+++ b/pkg/deployment/elasticsearch/instances/lifecycle_test.go
@@ -68,15 +68,10 @@ func TestResume(t *testing.T) {
 			args: args{params: Params{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("{}"),
 		},
 	}
 	for _, tt := range tests {
@@ -127,15 +122,10 @@ func TestPause(t *testing.T) {
 			args: args{params: Params{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New("{}"),
 		},
 	}
 	for _, tt := range tests {
diff --git a/pkg/deployment/elasticsearch/instances/reducer_test.go b/pkg/deployment/elasticsearch/instances/reducer_test.go
index 6bcd34b..d6ccf50 100644
--- a/pkg/deployment/elasticsearch/instances/reducer_test.go
+++ b/pkg/deployment/elasticsearch/instances/reducer_test.go
@@ -81,12 +81,9 @@ func TestList(t *testing.T) {
 			name: "fails due to API error",
 			args: args{params: util.ClusterParams{
 				ClusterID: util.ValidClusterID,
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: 500,
-					Body:       mock.NewStructBody(models.ElasticsearchClusterInfo{}),
-				}}),
+				API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due parameter validation",
diff --git a/pkg/deployment/elasticsearch/instances/routing_test.go b/pkg/deployment/elasticsearch/instances/routing_test.go
index 5026dce..513034e 100644
--- a/pkg/deployment/elasticsearch/instances/routing_test.go
+++ b/pkg/deployment/elasticsearch/instances/routing_test.go
@@ -62,16 +62,10 @@ func TestStartRouting(t *testing.T) {
 			args: args{params: Params{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							Status:     http.StatusText(http.StatusInternalServerError),
-							StatusCode: http.StatusInternalServerError,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New(`unknown error (status 500)`),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to parameter validation",
@@ -128,16 +122,10 @@ func TestStopRouting(t *testing.T) {
 			args: args{params: Params{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							Status:     http.StatusText(http.StatusInternalServerError),
-							StatusCode: http.StatusInternalServerError,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New(`unknown error (status 500)`),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to parameter validation",
diff --git a/pkg/deployment/elasticsearch/list_test.go b/pkg/deployment/elasticsearch/list_test.go
index e3b309f..c345ce8 100644
--- a/pkg/deployment/elasticsearch/list_test.go
+++ b/pkg/deployment/elasticsearch/list_test.go
@@ -116,14 +116,9 @@ func TestList(t *testing.T) {
 		{
 			name: "fails due to api error",
 			args: args{params: ListParams{
-				API: api.NewMock(mock.Response{
-					Response: http.Response{
-						StatusCode: 500,
-						Body:       mock.NewStringBody(`{}`),
-					},
-				}),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to parameter validation",
diff --git a/pkg/deployment/elasticsearch/metadata/cluster_metadata_test.go b/pkg/deployment/elasticsearch/metadata/cluster_metadata_test.go
index bc09ee0..730790f 100644
--- a/pkg/deployment/elasticsearch/metadata/cluster_metadata_test.go
+++ b/pkg/deployment/elasticsearch/metadata/cluster_metadata_test.go
@@ -92,16 +92,14 @@ func TestGetSettings(t *testing.T) {
 					StatusCode: 400,
 				}}),
 			}},
-			want:    nil,
 			wantErr: true,
-			error:   errors.New("unknown error (status 400)"),
+			error:   errors.New(errorResponse),
 		},
 		{
 			name: "Get cluster metadata settings fails if api reference is empty",
 			args: args{params: util.ClusterParams{
 				ClusterID: util.ValidClusterID,
 			}},
-			want:    nil,
 			wantErr: true,
 			error:   errors.New("api reference is required for command"),
 		},
@@ -110,7 +108,6 @@ func TestGetSettings(t *testing.T) {
 			args: args{params: util.ClusterParams{
 				ClusterID: util.InvalidClusterID,
 			}},
-			want:    nil,
 			wantErr: true,
 			error:   errors.New("cluster id should have a length of 32 characters"),
 		},
@@ -184,7 +181,7 @@ func TestUpdateClusterMetadataSettings(t *testing.T) {
 			}},
 			want:    nil,
 			wantErr: true,
-			error:   errors.New("unknown error (status 400)"),
+			error:   errors.New(errorResponse),
 		},
 		{
 			name:    "Get cluster metadata settings fails if settings reference is empty",
diff --git a/pkg/deployment/elasticsearch/monitoring/monitoring_test.go b/pkg/deployment/elasticsearch/monitoring/monitoring_test.go
index 168c394..6d06190 100644
--- a/pkg/deployment/elasticsearch/monitoring/monitoring_test.go
+++ b/pkg/deployment/elasticsearch/monitoring/monitoring_test.go
@@ -59,18 +59,12 @@ func TestEnable(t *testing.T) {
 			name: "fails due to API error",
 			args: args{params: EnableParams{
 				ClusterParams: util.ClusterParams{
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: http.StatusInternalServerError,
-							Status:     http.StatusText(http.StatusInternalServerError),
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 					ClusterID: util.ValidClusterID,
 				},
 				TargetID: util.ValidClusterID,
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to empty parameters",
@@ -155,17 +149,11 @@ func TestDisable(t *testing.T) {
 			name: "fails due to API error",
 			args: args{params: DisableParams{
 				ClusterParams: util.ClusterParams{
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: http.StatusInternalServerError,
-							Status:     http.StatusText(http.StatusInternalServerError),
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 					ClusterID: util.ValidClusterID,
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to empty parameters",
diff --git a/pkg/deployment/elasticsearch/plan/read_test.go b/pkg/deployment/elasticsearch/plan/read_test.go
index 7e9e3f7..6f18378 100644
--- a/pkg/deployment/elasticsearch/plan/read_test.go
+++ b/pkg/deployment/elasticsearch/plan/read_test.go
@@ -104,13 +104,9 @@ func TestGet(t *testing.T) {
 			name: "Fails when the API returns an error",
 			args: args{params: GetParams{Pending: true, ClusterParams: util.ClusterParams{
 				ClusterID: "8b43ed5e277f7ea6f13606fcf4027f9c",
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: http.StatusInternalServerError,
-					Status:     http.StatusText(http.StatusInternalServerError),
-					Body:       mock.NewStringBody(`{}`),
-				}}),
+				API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 	}
 	for _, tt := range tests {
@@ -177,13 +173,9 @@ func TestGetHistory(t *testing.T) {
 			name: "Fails when the API returns an error",
 			args: args{params: GetHistoryParams{ClusterParams: util.ClusterParams{
 				ClusterID: "8b43ed5e277f7ea6f13606fcf4027f9c",
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: http.StatusInternalServerError,
-					Status:     http.StatusText(http.StatusInternalServerError),
-					Body:       mock.NewStringBody(`{}`),
-				}}),
+				API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 	}
 	for _, tt := range tests {
diff --git a/pkg/deployment/elasticsearch/query_test.go b/pkg/deployment/elasticsearch/query_test.go
index 210169f..655d289 100644
--- a/pkg/deployment/elasticsearch/query_test.go
+++ b/pkg/deployment/elasticsearch/query_test.go
@@ -162,17 +162,10 @@ func TestQuery(t *testing.T) {
 				RestRequest: RestRequest{Method: "GET"},
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{Response: http.Response{
-						StatusCode: http.StatusInternalServerError,
-						Body: mock.NewStructBody(models.ElasticsearchClusterInfo{
-							Metadata: &models.ClusterMetadataInfo{
-								Endpoint: "some-host",
-							},
-						}),
-					}}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails to create an elasticsearch-cli app",
diff --git a/pkg/deployment/elasticsearch/reallocate_test.go b/pkg/deployment/elasticsearch/reallocate_test.go
index 04a05cf..82256c6 100644
--- a/pkg/deployment/elasticsearch/reallocate_test.go
+++ b/pkg/deployment/elasticsearch/reallocate_test.go
@@ -60,21 +60,10 @@ func TestReallocate(t *testing.T) {
 				OutputDevice: output.NewDevice(new(bytes.Buffer)),
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body: mock.NewStructBody(models.ElasticsearchClusterInfo{
-								Topology: &models.ClusterTopologyInfo{
-									Instances: []*models.ClusterInstanceInfo{
-										{InstanceName: ec.String("instance-00000001")},
-									},
-								},
-							}),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "failed obtaining instances"}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed obtaining instances"}`),
 		},
 		{
 			name: "Fails performing the move operation",
@@ -93,15 +82,12 @@ func TestReallocate(t *testing.T) {
 								},
 							}),
 						},
-					}, mock.Response{ // MOVE
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					}, mock.New500Response( // MOVE
+						mock.NewStringBody(`{"error": "failed moving instances"}`),
+					)),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed moving instances"}`),
 		},
 		{
 			name: "Succeeds when no instances are specified",
diff --git a/pkg/deployment/elasticsearch/restart_test.go b/pkg/deployment/elasticsearch/restart_test.go
index 5c15051..871f242 100644
--- a/pkg/deployment/elasticsearch/restart_test.go
+++ b/pkg/deployment/elasticsearch/restart_test.go
@@ -95,15 +95,10 @@ func TestRestartCluster(t *testing.T) {
 			args: args{params: RestartClusterParams{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to parameter validation (Cluster ID)",
diff --git a/pkg/deployment/elasticsearch/resync_test.go b/pkg/deployment/elasticsearch/resync_test.go
index c6fb8a9..d14701a 100644
--- a/pkg/deployment/elasticsearch/resync_test.go
+++ b/pkg/deployment/elasticsearch/resync_test.go
@@ -24,13 +24,16 @@ import (
 	"reflect"
 	"testing"
 
-	"github.com/davecgh/go-spew/spew"
 	"github.com/elastic/cloud-sdk-go/pkg/api"
 	"github.com/elastic/cloud-sdk-go/pkg/api/mock"
 
 	"github.com/elastic/ecctl/pkg/util"
 )
 
+const errStr = `{
+  "errors": null
+}`
+
 func TestResyncCluster(t *testing.T) {
 	type args struct {
 		params ResyncClusterParams
@@ -59,13 +62,10 @@ func TestResyncCluster(t *testing.T) {
 			args: args{params: ResyncClusterParams{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{Response: http.Response{
-						StatusCode: http.StatusForbidden,
-						Body:       mock.NewStringBody(`{}`),
-					}}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{}`))),
 				},
 			}},
-			wantErr: errors.New("unknown error (status 403)"),
+			wantErr: errors.New(errStr),
 		},
 		{
 			name: "Fails due to API error",
@@ -102,7 +102,6 @@ func TestResyncCluster(t *testing.T) {
 	for _, tt := range tests {
 		t.Run(tt.name, func(t *testing.T) {
 			if err := ResyncCluster(tt.args.params); !reflect.DeepEqual(err, tt.wantErr) {
-				spew.Dump(err, tt.wantErr)
 				t.Errorf("ResyncCluster() error = %v, wantErr %v", err, tt.wantErr)
 			}
 		})
diff --git a/pkg/deployment/elasticsearch/search_test.go b/pkg/deployment/elasticsearch/search_test.go
index 7662bd7..c3c9bb9 100644
--- a/pkg/deployment/elasticsearch/search_test.go
+++ b/pkg/deployment/elasticsearch/search_test.go
@@ -62,13 +62,10 @@ func TestSearchClusters(t *testing.T) {
 			name: "Search clusters fails if search api call fails",
 			args: args{params: SearchClusterParams{
 				Request: models.SearchRequest{Query: &models.QueryContainer{}},
-				API: api.NewMock(mock.Response{Response: http.Response{
-					Body:       mock.NewStringBody("{}"),
-					StatusCode: 404,
-				}}),
+				API:     api.NewMock(mock.New404Response(mock.NewStringBody(`{}`))),
 			}},
 			wantErr: true,
-			error:   errors.New("unknown error (status 404)"),
+			error:   errors.New("{}"),
 		},
 		{
 			name: "Search clusters succeeds if search api call succeeds",
diff --git a/pkg/deployment/elasticsearch/shutdown_test.go b/pkg/deployment/elasticsearch/shutdown_test.go
index 143c26e..038f362 100644
--- a/pkg/deployment/elasticsearch/shutdown_test.go
+++ b/pkg/deployment/elasticsearch/shutdown_test.go
@@ -81,15 +81,10 @@ func TestShutdownCluster(t *testing.T) {
 			args: args{params: ShutdownClusterParams{
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody(`{}`),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to parameter validation (Cluster ID)",
diff --git a/pkg/deployment/elasticsearch/upgrade_test.go b/pkg/deployment/elasticsearch/upgrade_test.go
index a718a41..5adc370 100644
--- a/pkg/deployment/elasticsearch/upgrade_test.go
+++ b/pkg/deployment/elasticsearch/upgrade_test.go
@@ -86,15 +86,10 @@ func TestUpgrade(t *testing.T) {
 				Version: "5.0.0",
 				ClusterParams: util.ClusterParams{
 					ClusterID: util.ValidClusterID,
-					API: api.NewMock(mock.Response{
-						Response: http.Response{
-							StatusCode: 500,
-							Body:       mock.NewStringBody("{}"),
-						},
-					}),
+					API:       api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "succeeds without tracking",
diff --git a/pkg/deployment/kibana/create_test.go b/pkg/deployment/kibana/create_test.go
index 88110d6..5aef412 100644
--- a/pkg/deployment/kibana/create_test.go
+++ b/pkg/deployment/kibana/create_test.go
@@ -129,7 +129,7 @@ func TestCreate(t *testing.T) {
 			},
 		},
 		{
-			name: "Succeeds creating a kibana cluster with no tracking",
+			name: "Succeeds creating a kibana instance with no tracking",
 			args: args{params: CreateParams{
 				CreateKibanaRequest: NewKibanaBody(NewKibanaBodyParams{}),
 				DeploymentParams: DeploymentParams{
@@ -147,7 +147,7 @@ func TestCreate(t *testing.T) {
 			},
 		},
 		{
-			name: "Succeeds creating a kibana cluster with tracking",
+			name: "Succeeds creating a kibana instance with tracking",
 			args: args{params: CreateParams{
 				CreateKibanaRequest: NewKibanaBody(NewKibanaBodyParams{}),
 				DeploymentParams: DeploymentParams{
diff --git a/pkg/deployment/kibana/reallocate_test.go b/pkg/deployment/kibana/reallocate_test.go
index d7af21a..4cc4a10 100644
--- a/pkg/deployment/kibana/reallocate_test.go
+++ b/pkg/deployment/kibana/reallocate_test.go
@@ -149,7 +149,7 @@ func TestReallocate(t *testing.T) {
 			wantErr: true,
 		},
 		{
-			name: "should fail if get kibana cluster fails",
+			name: "should fail if get kibana instance fails",
 			params: ReallocateParams{
 				DeploymentParams: DeploymentParams{
 					ID: "853cfe89c4a74fb6a6477574d3c03771",
diff --git a/pkg/deployment/kibana/resync_test.go b/pkg/deployment/kibana/resync_test.go
index de16ac0..bbbec06 100644
--- a/pkg/deployment/kibana/resync_test.go
+++ b/pkg/deployment/kibana/resync_test.go
@@ -63,10 +63,10 @@ func TestResync(t *testing.T) {
 				ID: "2c221bd86b7f48959a59ee3128d5c5e8",
 				API: api.NewMock(mock.Response{Response: http.Response{
 					StatusCode: http.StatusForbidden,
-					Body:       mock.NewStringBody(`{}`),
+					Body:       mock.NewStringBody(`{"error": "some forbidden error"}`),
 				}}),
 			}},
-			wantErr: errors.New("unknown error (status 403)"),
+			wantErr: errors.New(`{"error": "some forbidden error"}`),
 		},
 		{
 			name: "Fails due to API error",
@@ -83,7 +83,7 @@ func TestResync(t *testing.T) {
 			},
 		},
 		{
-			name: "Succeeds to resynchronize Kibana cluster without errors",
+			name: "Succeeds to resynchronize Kibana instance without errors",
 			args: args{params: DeploymentParams{
 				ID: "d324608c97154bdba2dff97511d40368",
 				API: api.NewMock(mock.Response{Response: http.Response{
diff --git a/pkg/deployment/list_test.go b/pkg/deployment/list_test.go
index dd16e02..4c2c1e6 100644
--- a/pkg/deployment/list_test.go
+++ b/pkg/deployment/list_test.go
@@ -99,9 +99,9 @@ func TestList(t *testing.T) {
 		{
 			name: "fails on API error",
 			args: args{params: ListParams{
-				API: api.NewMock(mock.New500Response(mock.NewStringBody("error"))),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Succeeds",
diff --git a/pkg/deployment/restore_test.go b/pkg/deployment/restore_test.go
index 3e709d0..0d2f3fc 100644
--- a/pkg/deployment/restore_test.go
+++ b/pkg/deployment/restore_test.go
@@ -51,10 +51,10 @@ func TestRestore(t *testing.T) {
 		{
 			name: "fails on API error",
 			args: args{params: RestoreParams{
-				API:          api.NewMock(mock.New500Response(mock.NewStringBody("error"))),
+				API:          api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				DeploymentID: util.ValidClusterID,
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Succeeds",
diff --git a/pkg/deployment/search_test.go b/pkg/deployment/search_test.go
index 8ef4386..61ecaf8 100644
--- a/pkg/deployment/search_test.go
+++ b/pkg/deployment/search_test.go
@@ -51,10 +51,10 @@ func TestSearch(t *testing.T) {
 		{
 			name: "fails on API error",
 			args: args{params: SearchParams{
-				API:     api.NewMock(mock.New500Response(mock.NewStringBody("error"))),
+				API:     api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				Request: &models.SearchRequest{},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Succeeds",
diff --git a/pkg/deployment/shutdown_test.go b/pkg/deployment/shutdown_test.go
index 95b40fd..7023bbd 100644
--- a/pkg/deployment/shutdown_test.go
+++ b/pkg/deployment/shutdown_test.go
@@ -51,10 +51,10 @@ func TestShutdown(t *testing.T) {
 		{
 			name: "fails on API error",
 			args: args{params: ShutdownParams{
-				API:          api.NewMock(mock.New500Response(mock.NewStringBody("error"))),
+				API:          api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				DeploymentID: util.ValidClusterID,
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Succeeds",
diff --git a/pkg/platform/allocator/allocator_test.go b/pkg/platform/allocator/allocator_test.go
index a77cea3..6009d27 100644
--- a/pkg/platform/allocator/allocator_test.go
+++ b/pkg/platform/allocator/allocator_test.go
@@ -128,14 +128,11 @@ func TestGet(t *testing.T) {
 			name: "Get fails due to API failure",
 			args: args{
 				params: GetParams{
-					ID: "an id",
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					ID:  "an id",
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Get Succeeds",
@@ -406,15 +403,10 @@ func TestList(t *testing.T) {
 		},
 		{
 			name: "List fails due to API error",
-			args: args{
-				params: ListParams{
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
-				},
-			},
-			err: errors.New("unknown error (status 500)"),
+			args: args{params: ListParams{
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
+			}},
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "List Succeeds",
diff --git a/pkg/platform/allocator/metadata_test.go b/pkg/platform/allocator/metadata_test.go
index 5dee381..6f970f0 100644
--- a/pkg/platform/allocator/metadata_test.go
+++ b/pkg/platform/allocator/metadata_test.go
@@ -102,14 +102,11 @@ func TestGetAllocatorMetadata(t *testing.T) {
 			name: "Get metadata fails due to API failure",
 			args: args{
 				params: MetadataGetParams{
-					ID: "an id",
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					ID:  "an id",
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Get metadata Succeeds",
diff --git a/pkg/platform/allocator/search_test.go b/pkg/platform/allocator/search_test.go
index 49bbb33..fbb9e62 100644
--- a/pkg/platform/allocator/search_test.go
+++ b/pkg/platform/allocator/search_test.go
@@ -64,14 +64,11 @@ func TestSearch(t *testing.T) {
 			name: "fails if search api call fails",
 			args: args{params: SearchParams{
 				Request: models.SearchRequest{Query: &models.QueryContainer{}},
-				API: api.NewMock(mock.Response{Response: http.Response{
-					Body:       mock.NewStringBody(`{"error":"invalid query"}`),
-					StatusCode: 404,
-				}}),
+				API:     api.NewMock(mock.New404Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
 			want:    nil,
 			wantErr: true,
-			error:   errors.New("unknown error (status 404)"),
+			error:   errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "succeeds if search api call succeeds",
diff --git a/pkg/platform/allocator/vacate_full_test.go b/pkg/platform/allocator/vacate_full_test.go
index a2f13fc..eaf16e7 100644
--- a/pkg/platform/allocator/vacate_full_test.go
+++ b/pkg/platform/allocator/vacate_full_test.go
@@ -78,7 +78,7 @@ func TestVacate(t *testing.T) {
 			),
 		},
 		{
-			name: "Succeeds moving a single kibana cluster from a single allocator",
+			name: "Succeeds moving a single kibana instance from a single allocator",
 			args: args{
 				buf: sdkSync.NewBuffer(),
 				params: newVacateTestCase(t, vacateCase{
diff --git a/pkg/platform/allocator/vacate_responses_test.go b/pkg/platform/allocator/vacate_responses_test.go
index e4211db..9624185 100644
--- a/pkg/platform/allocator/vacate_responses_test.go
+++ b/pkg/platform/allocator/vacate_responses_test.go
@@ -340,7 +340,7 @@ type vacateCaseClusters struct {
 	Allocator string
 	// Elasticsearch clusters that will be simulated
 	elasticsearch []vacateCaseClusterConfig
-	// Kibana clusters that will be simulated
+	// Kibana instances that will be simulated
 	kibana []vacateCaseClusterConfig
 	// APM clusters that will be simulated
 	apm []vacateCaseClusterConfig
diff --git a/pkg/platform/allocator/vacate_test.go b/pkg/platform/allocator/vacate_test.go
index d18dcef..a6c3014 100644
--- a/pkg/platform/allocator/vacate_test.go
+++ b/pkg/platform/allocator/vacate_test.go
@@ -704,7 +704,7 @@ func TestVacateCluster(t *testing.T) {
 			),
 		},
 		{
-			name: "Succeeds with a kibana cluster",
+			name: "Succeeds with a kibana instance",
 			args: args{
 				buf: new(bytes.Buffer),
 				params: &VacateClusterParams{
@@ -742,7 +742,7 @@ func TestVacateCluster(t *testing.T) {
 			),
 		},
 		{
-			name: "Moving kibana cluster fails",
+			name: "Moving kibana instance fails",
 			args: args{
 				buf: new(bytes.Buffer),
 				params: &VacateClusterParams{
diff --git a/pkg/platform/info_test.go b/pkg/platform/info_test.go
index 0d3cc9b..0c037bd 100644
--- a/pkg/platform/info_test.go
+++ b/pkg/platform/info_test.go
@@ -60,14 +60,10 @@ func TestGetInfo(t *testing.T) {
 		},
 		{
 			name: "fails due to API error",
-			args: args{params: GetInfoParams{API: api.NewMock(mock.Response{
-				Response: http.Response{
-					Status:     http.StatusText(http.StatusNotFound),
-					StatusCode: http.StatusNotFound,
-					Body:       mock.NewStringBody(`{}`),
-				},
-			})}},
-			err: errors.New("unknown error (status 404)"),
+			args: args{params: GetInfoParams{
+				API: api.NewMock(mock.New404Response(mock.NewStringBody(`{"error": "some error"}`))),
+			}},
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to parameter validation",
diff --git a/pkg/platform/instanceconfig/instanceconfig_test.go b/pkg/platform/instanceconfig/instanceconfig_test.go
index 740f4a9..5a4b4e1 100644
--- a/pkg/platform/instanceconfig/instanceconfig_test.go
+++ b/pkg/platform/instanceconfig/instanceconfig_test.go
@@ -98,13 +98,10 @@ func TestList(t *testing.T) {
 			name: "List fails on API error",
 			args: args{
 				params: ListParams{
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "List fails on parameter validation failure",
@@ -204,14 +201,11 @@ func TestGet(t *testing.T) {
 			name: "Get fails on API error",
 			args: args{
 				params: GetParams{
-					ID: "kibana",
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					ID:  "kibana",
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Get fails on parameter validation failure (API missing)",
@@ -329,13 +323,10 @@ func TestCreate(t *testing.T) {
 							},
 						},
 					},
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Create fails on parameter validation failure (API missing)",
@@ -424,13 +415,10 @@ func TestUpdate(t *testing.T) {
 							},
 						},
 					},
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Update fails on parameter validation failure (API missing)",
@@ -494,14 +482,11 @@ func TestDelete(t *testing.T) {
 			name: "Delete fails on API error",
 			args: args{
 				params: DeleteParams{
-					ID: "kibana",
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					ID:  "kibana",
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Delete fails on parameter validation failure (API missing)",
diff --git a/pkg/platform/proxy/filteredgroup/filtered_group_test.go b/pkg/platform/proxy/filteredgroup/filtered_group_test.go
index 222c650..6931d98 100644
--- a/pkg/platform/proxy/filteredgroup/filtered_group_test.go
+++ b/pkg/platform/proxy/filteredgroup/filtered_group_test.go
@@ -79,14 +79,10 @@ func TestShow(t *testing.T) {
 		{
 			name: "Proxies filtered group show fails with 403 Forbidden",
 			args: args{params: CommonParams{
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: http.StatusForbidden,
-					Status:     http.StatusText(http.StatusForbidden),
-					Body:       mock.NewStringBody(`{}`),
-				}}),
-				ID: "test1",
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
+				ID:  "test1",
 			}},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Proxies filtered group show fails due to empty API",
@@ -168,7 +164,7 @@ func TestCreate(t *testing.T) {
 					API: api.NewMock(mock.Response{Response: http.Response{
 						StatusCode: http.StatusForbidden,
 						Status:     http.StatusText(http.StatusForbidden),
-						Body:       mock.NewStringBody(`{}`),
+						Body:       mock.NewStringBody(`{"error": "some error"}`),
 					}}),
 					ID: "test2",
 				},
@@ -177,7 +173,7 @@ func TestCreate(t *testing.T) {
 				},
 				ExpectedProxiesCount: 15,
 			}},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Proxies filtered group create expected proxies count greater than 0 fails",
@@ -273,14 +269,10 @@ func TestDelete(t *testing.T) {
 		{
 			name: "Proxies filtered group delete fails with 403 Forbidden",
 			args: args{params: CommonParams{
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: http.StatusForbidden,
-					Status:     http.StatusText(http.StatusForbidden),
-					Body:       mock.NewStringBody(`{}`),
-				}}),
-				ID: "test1",
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
+				ID:  "test1",
 			}},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Proxies filtered group delete fails due to empty API",
@@ -362,7 +354,7 @@ func TestUpdate(t *testing.T) {
 						API: api.NewMock(mock.Response{Response: http.Response{
 							StatusCode: http.StatusForbidden,
 							Status:     http.StatusText(http.StatusForbidden),
-							Body:       mock.NewStringBody(`{}`),
+							Body:       mock.NewStringBody(`{"error": "some error"}`),
 						}}),
 						ID: "test2",
 					},
@@ -375,7 +367,7 @@ func TestUpdate(t *testing.T) {
 				Version: 1,
 			},
 			},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Proxies filtered group update expected proxies count greater than 0 fails",
@@ -607,14 +599,10 @@ func TestList(t *testing.T) {
 		{
 			name: "Proxies filtered group list fails with 403 Forbidden",
 			args: args{params: CommonParams{
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: http.StatusForbidden,
-					Status:     http.StatusText(http.StatusForbidden),
-					Body:       mock.NewStringBody(`{}`),
-				}}),
-				ID: "all",
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
+				ID:  "all",
 			}},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Proxies filtered group list fails due to empty API",
diff --git a/pkg/platform/proxy/proxy_test.go b/pkg/platform/proxy/proxy_test.go
index 084cdbb..f2cbba8 100644
--- a/pkg/platform/proxy/proxy_test.go
+++ b/pkg/platform/proxy/proxy_test.go
@@ -79,13 +79,9 @@ func TestList(t *testing.T) {
 		{
 			name: "Proxy list fails",
 			args: args{params: Params{
-				API: api.NewMock(mock.Response{Response: http.Response{
-					StatusCode: http.StatusForbidden,
-					Status:     http.StatusText(http.StatusForbidden),
-					Body:       mock.NewStringBody(`{}`),
-				}}),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Proxy list fails due to empty API",
@@ -154,14 +150,10 @@ func TestGet(t *testing.T) {
 			args: args{params: GetParams{
 				ID: "87b2c433c761",
 				Params: Params{
-					API: api.NewMock(mock.Response{Response: http.Response{
-						StatusCode: http.StatusForbidden,
-						Status:     http.StatusText(http.StatusForbidden),
-						Body:       mock.NewStringBody(`{}`),
-					}}),
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			}},
-			err: errors.New("unknown error (status 403)"),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Get proxy fails due to empty params.ID",
diff --git a/pkg/platform/role/add_blessing_test.go b/pkg/platform/role/add_blessing_test.go
index 8d4a9f6..bcc9e82 100644
--- a/pkg/platform/role/add_blessing_test.go
+++ b/pkg/platform/role/add_blessing_test.go
@@ -53,13 +53,13 @@ func TestAddBlessing(t *testing.T) {
 			name: "fails updating the role",
 			args: args{params: AddBlessingParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					`"failed creating role"`,
+					`{"error": "failed updating role"}`,
 				))),
 				Blessing: &models.Blessing{},
 				RunnerID: "some",
 				ID:       "one",
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed updating role"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/role/create_test.go b/pkg/platform/role/create_test.go
index 64f7ab7..f6acfd2 100644
--- a/pkg/platform/role/create_test.go
+++ b/pkg/platform/role/create_test.go
@@ -51,11 +51,11 @@ func TestCreate(t *testing.T) {
 			name: "fails creating the role",
 			args: args{params: CreateParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					`"failed creating role"`,
+					`{"error": "failed creating role"}`,
 				))),
 				Role: &models.RoleAggregateCreateData{},
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed creating role"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/role/delete_test.go b/pkg/platform/role/delete_test.go
index 658285d..3612850 100644
--- a/pkg/platform/role/delete_test.go
+++ b/pkg/platform/role/delete_test.go
@@ -50,11 +50,11 @@ func TestDelete(t *testing.T) {
 			name: "fails creating the role",
 			args: args{params: DeleteParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					`"failed creating role"`,
+					`{"error": "failed deleting role"}`,
 				))),
 				ID: "some",
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed deleting role"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/role/list_test.go b/pkg/platform/role/list_test.go
index a41a710..2d4bebc 100644
--- a/pkg/platform/role/list_test.go
+++ b/pkg/platform/role/list_test.go
@@ -50,10 +50,10 @@ func TestList(t *testing.T) {
 			name: "fails on api error",
 			args: args{params: ListParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					"big failure",
+					`{"error": "failed listing roles"}`,
 				))),
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed listing roles"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/role/set_blessing_test.go b/pkg/platform/role/set_blessing_test.go
index 3869f6e..801fc29 100644
--- a/pkg/platform/role/set_blessing_test.go
+++ b/pkg/platform/role/set_blessing_test.go
@@ -52,12 +52,12 @@ func TestSetBlessings(t *testing.T) {
 			name: "fails updating the role",
 			args: args{params: SetBlessingsParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					`"failed creating role"`,
+					`{"error": "failed updating role"}`,
 				))),
 				Blessings: &models.Blessings{},
 				ID:        "one",
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed updating role"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/role/show_test.go b/pkg/platform/role/show_test.go
index 9471524..df7a7c0 100644
--- a/pkg/platform/role/show_test.go
+++ b/pkg/platform/role/show_test.go
@@ -53,11 +53,11 @@ func TestShow(t *testing.T) {
 			name: "fails on api error",
 			args: args{params: ShowParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					"big failure",
+					`{"error": "failed getting role"}`,
 				))),
 				ID: "some",
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed getting role"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/role/update_test.go b/pkg/platform/role/update_test.go
index 0ca44d1..cd9410c 100644
--- a/pkg/platform/role/update_test.go
+++ b/pkg/platform/role/update_test.go
@@ -52,12 +52,12 @@ func TestUpdate(t *testing.T) {
 			name: "fails updating the role",
 			args: args{params: UpdateParams{
 				API: api.NewMock(mock.New500Response(mock.NewStringBody(
-					`"failed creating role"`,
+					`{"error": "failed updating role"}`,
 				))),
 				Role: &models.Role{},
 				ID:   "one",
 			}},
-			err: errors.New("unknown error (status 500)"),
+			err: errors.New(`{"error": "failed updating role"}`),
 		},
 		{
 			name: "succeeds",
diff --git a/pkg/platform/snaprepo/repository_test.go b/pkg/platform/snaprepo/repository_test.go
index af35dea..ed34df3 100644
--- a/pkg/platform/snaprepo/repository_test.go
+++ b/pkg/platform/snaprepo/repository_test.go
@@ -160,14 +160,11 @@ func TestDelete(t *testing.T) {
 				params: DeleteParams{
 					Name: "my_repo",
 					Params: Params{
-						API: api.NewMock(mock.Response{Response: http.Response{
-							StatusCode: 404,
-							Body:       mock.NewStringBody(`{}`),
-						}}),
+						API: api.NewMock(mock.New404Response(mock.NewStringBody(`{"error": "some error"}`))),
 					},
 				},
 			},
-			wantErr: errors.New("unknown error (status 404)"),
+			wantErr: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Delete fails on invalid params",
diff --git a/pkg/platform/stack/stack_test.go b/pkg/platform/stack/stack_test.go
index ca18806..84eedb0 100644
--- a/pkg/platform/stack/stack_test.go
+++ b/pkg/platform/stack/stack_test.go
@@ -139,13 +139,13 @@ func TestGet(t *testing.T) {
 			args: args{params: GetParams{
 				Version: "6.0.0",
 				API: api.NewMock(mock.Response{
-					Error: errors.New("unknown error"),
+					Error: errors.New(`{"error": "some error"}`),
 				}),
 			}},
 			err: &url.Error{
 				Op:  "Get",
 				URL: "https://mock-host/mock-path/stack/versions/6.0.0",
-				Err: errors.New("unknown error"),
+				Err: errors.New(`{"error": "some error"}`),
 			},
 		},
 		{
@@ -302,13 +302,13 @@ func TestList(t *testing.T) {
 			name: "List fails due to API error",
 			args: args{params: ListParams{
 				API: api.NewMock(mock.Response{
-					Error: errors.New("unknown error"),
+					Error: errors.New(`{"error": "some error"}`),
 				}),
 			}},
 			err: &url.Error{
 				Op:  "Get",
 				URL: "https://mock-host/mock-path/stack/versions?show_deleted=false&show_unusable=false",
-				Err: errors.New("unknown error"),
+				Err: errors.New(`{"error": "some error"}`),
 			},
 		},
 		{
@@ -316,13 +316,13 @@ func TestList(t *testing.T) {
 			args: args{params: ListParams{
 				Deleted: true,
 				API: api.NewMock(mock.Response{
-					Error: errors.New("unknown error"),
+					Error: errors.New(`{"error": "some error"}`),
 				}),
 			}},
 			err: &url.Error{
 				Op:  "Get",
 				URL: "https://mock-host/mock-path/stack/versions?show_deleted=true&show_unusable=false",
-				Err: errors.New("unknown error"),
+				Err: errors.New(`{"error": "some error"}`),
 			},
 		},
 		{
@@ -372,13 +372,13 @@ func TestUpload(t *testing.T) {
 			args: args{params: UploadParams{
 				StackPack: strings.NewReader("aa"),
 				API: api.NewMock(mock.Response{
-					Error: errors.New("unknown error"),
+					Error: errors.New(`{"error": "some error"}`),
 				}),
 			}},
 			err: &url.Error{
 				Op:  "Post",
 				URL: "https://mock-host/mock-path/stack/versions",
-				Err: errors.New("unknown error"),
+				Err: errors.New(`{"error": "some error"}`),
 			},
 		},
 		{
@@ -460,13 +460,13 @@ func TestDelete(t *testing.T) {
 			args: args{params: DeleteParams{
 				Version: "5.6.0",
 				API: api.NewMock(mock.Response{
-					Error: errors.New("unknown error"),
+					Error: errors.New(`{"error": "some error"}`),
 				}),
 			}},
 			err: &url.Error{
 				Op:  "Delete",
 				URL: "https://mock-host/mock-path/stack/versions/5.6.0",
-				Err: errors.New("unknown error"),
+				Err: errors.New(`{"error": "some error"}`),
 			},
 		},
 		{
diff --git a/pkg/user/auth/admin/listkeys_test.go b/pkg/user/auth/admin/listkeys_test.go
index ef1182b..f0cfc75 100644
--- a/pkg/user/auth/admin/listkeys_test.go
+++ b/pkg/user/auth/admin/listkeys_test.go
@@ -76,22 +76,18 @@ func TestListKeys(t *testing.T) {
 		{
 			name: "fails due to API error on all call",
 			args: args{params: ListKeysParams{
-				API: api.NewMock(
-					mock.New500Response(mock.NewStringBody("")),
-				),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				All: true,
 			}},
-			err: errors.New(`unknown error (status 500)`),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to API error on user call",
 			args: args{params: ListKeysParams{
-				API: api.NewMock(
-					mock.New500Response(mock.NewStringBody("")),
-				),
+				API:    api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				UserID: "someid",
 			}},
-			err: errors.New(`unknown error (status 500)`),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "succeeds listing keys for multiple users",
diff --git a/pkg/user/auth/listkeys_test.go b/pkg/user/auth/listkeys_test.go
index b2c6546..9161858 100644
--- a/pkg/user/auth/listkeys_test.go
+++ b/pkg/user/auth/listkeys_test.go
@@ -58,20 +58,16 @@ func TestListKeys(t *testing.T) {
 		{
 			name: "fails due to API error on all call",
 			args: args{params: ListKeysParams{
-				API: api.NewMock(
-					mock.New500Response(mock.NewStringBody("")),
-				),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
-			err: errors.New(`unknown error (status 500)`),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "fails due to API error",
 			args: args{params: ListKeysParams{
-				API: api.NewMock(
-					mock.New500Response(mock.NewStringBody("")),
-				),
+				API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 			}},
-			err: errors.New(`unknown error (status 500)`),
+			err: errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "succeeds listing keys",
diff --git a/pkg/user/create_test.go b/pkg/user/create_test.go
index 790e04b..2797149 100644
--- a/pkg/user/create_test.go
+++ b/pkg/user/create_test.go
@@ -175,14 +175,11 @@ func TestCreate(t *testing.T) {
 					UserName: "bob",
 					Password: []byte("supersecretpass"),
 					Roles:    []string{"ece_platform_admin"},
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 404,
-					}}),
+					API:      api.NewMock(mock.New404Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
 			wantErr: true,
-			err:     errors.New("unknown error (status 404)"),
+			err:     errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Create succeeds",
diff --git a/pkg/user/delete_test.go b/pkg/user/delete_test.go
index d5cfd5f..cc40652 100644
--- a/pkg/user/delete_test.go
+++ b/pkg/user/delete_test.go
@@ -55,13 +55,13 @@ func TestDelete(t *testing.T) {
 				params: DeleteParams{
 					UserName: "user bob",
 					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
+						Body:       mock.NewStringBody(`{"error": "some error"}`),
 						StatusCode: 400,
 					}}),
 				},
 			},
 			wantErr: true,
-			err:     errors.New("unknown error (status 400)"),
+			err:     errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Delete succeeds",
diff --git a/pkg/user/get_test.go b/pkg/user/get_test.go
index c46e6bd..c27d754 100644
--- a/pkg/user/get_test.go
+++ b/pkg/user/get_test.go
@@ -109,14 +109,11 @@ func TestGet(t *testing.T) {
 			args: args{
 				params: GetParams{
 					UserName: "hermenelgilda",
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					API:      api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
 			wantErr: true,
-			err:     errors.New("unknown error (status 500)"),
+			err:     errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "Get succeeds",
diff --git a/pkg/user/list_test.go b/pkg/user/list_test.go
index c17b91e..e4ff4f1 100644
--- a/pkg/user/list_test.go
+++ b/pkg/user/list_test.go
@@ -62,14 +62,11 @@ func TestList(t *testing.T) {
 			name: "List fails due to API failure",
 			args: args{
 				params: ListParams{
-					API: api.NewMock(mock.Response{Response: http.Response{
-						Body:       mock.NewStringBody(""),
-						StatusCode: 500,
-					}}),
+					API: api.NewMock(mock.New500Response(mock.NewStringBody(`{"error": "some error"}`))),
 				},
 			},
 			wantErr: true,
-			err:     errors.New("unknown error (status 500)"),
+			err:     errors.New(`{"error": "some error"}`),
 		},
 		{
 			name: "List succeeds",