diff --git a/lib/endpoints/configs.js b/lib/endpoints/configs.js index 238ea0b..d86b068 100644 --- a/lib/endpoints/configs.js +++ b/lib/endpoints/configs.js @@ -18,7 +18,8 @@ class ConfigClient { url: '/configs', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'Server Error' diff --git a/lib/endpoints/containers.js b/lib/endpoints/containers.js index 1c97c57..c36fae9 100644 --- a/lib/endpoints/containers.js +++ b/lib/endpoints/containers.js @@ -19,7 +19,8 @@ class ContainersClient { url: '/containers/json', qs: params, successCodes: { - 200: 'no error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 400: 'Bad Parameter', diff --git a/lib/endpoints/images.js b/lib/endpoints/images.js index a88b939..e47d762 100644 --- a/lib/endpoints/images.js +++ b/lib/endpoints/images.js @@ -18,7 +18,8 @@ class ImagesClient { url: '/images/json', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 400: 'Bad Parameter', diff --git a/lib/endpoints/networks.js b/lib/endpoints/networks.js index c4fe9aa..73f6740 100644 --- a/lib/endpoints/networks.js +++ b/lib/endpoints/networks.js @@ -18,7 +18,8 @@ class NetworksClient { url: '/networks', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 400: 'Bad Parameter', diff --git a/lib/endpoints/nodes.js b/lib/endpoints/nodes.js index 9d04880..d0ffee5 100644 --- a/lib/endpoints/nodes.js +++ b/lib/endpoints/nodes.js @@ -18,7 +18,8 @@ class NodesClient { url: '/nodes', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'Server Error', diff --git a/lib/endpoints/plugins.js b/lib/endpoints/plugins.js index b6cb7a7..fb29629 100644 --- a/lib/endpoints/plugins.js +++ b/lib/endpoints/plugins.js @@ -18,7 +18,8 @@ class PluginsClient { url: '/plugins', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'Server Error' diff --git a/lib/endpoints/secrets.js b/lib/endpoints/secrets.js index e29d101..4d4bbfa 100644 --- a/lib/endpoints/secrets.js +++ b/lib/endpoints/secrets.js @@ -18,7 +18,8 @@ class SecretsClient { url: '/secrets', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'Server Error' diff --git a/lib/endpoints/services.js b/lib/endpoints/services.js index 477164a..12564fa 100644 --- a/lib/endpoints/services.js +++ b/lib/endpoints/services.js @@ -18,7 +18,8 @@ class ServicesClient { url: '/services', qs: params, successCodes: { - 200: 'No Error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'Server Error' diff --git a/lib/endpoints/swarm.js b/lib/endpoints/swarm.js index b5a273f..17ed068 100644 --- a/lib/endpoints/swarm.js +++ b/lib/endpoints/swarm.js @@ -18,7 +18,8 @@ class SwarmClient { url: '/swarm', qs: params, successCodes: { - 200: 'no error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: {} }); diff --git a/lib/endpoints/tasks.js b/lib/endpoints/tasks.js index c30c59a..761d4e8 100644 --- a/lib/endpoints/tasks.js +++ b/lib/endpoints/tasks.js @@ -18,7 +18,8 @@ class TasksClient { url: '/tasks', qs: params, successCodes: { - 200: 'no error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'server error' diff --git a/lib/endpoints/volumes.js b/lib/endpoints/volumes.js index c0f2f3c..4c49c18 100644 --- a/lib/endpoints/volumes.js +++ b/lib/endpoints/volumes.js @@ -18,7 +18,8 @@ class VolumesClient { url: '/volumes', qs: params, successCodes: { - 200: 'no error' + 200: 'No Error', + 204: 'No Content' }, errorCodes: { 500: 'server error'