Skip to content

Added 204 as a success code #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/endpoints/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class ConfigClient {
url: '/configs',
qs: params,
successCodes: {
200: 'No Error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'Server Error'
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class NetworksClient {
url: '/networks',
qs: params,
successCodes: {
200: 'No Error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
400: 'Bad Parameter',
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class NodesClient {
url: '/nodes',
qs: params,
successCodes: {
200: 'No Error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'Server Error',
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class PluginsClient {
url: '/plugins',
qs: params,
successCodes: {
200: 'No Error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'Server Error'
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class SecretsClient {
url: '/secrets',
qs: params,
successCodes: {
200: 'No Error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'Server Error'
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class ServicesClient {
url: '/services',
qs: params,
successCodes: {
200: 'No Error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'Server Error'
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class SwarmClient {
url: '/swarm',
qs: params,
successCodes: {
200: 'no error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {}
});
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class TasksClient {
url: '/tasks',
qs: params,
successCodes: {
200: 'no error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'server error'
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/volumes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class VolumesClient {
url: '/volumes',
qs: params,
successCodes: {
200: 'no error'
200: 'No Error',
204: 'No Content'
},
errorCodes: {
500: 'server error'
Expand Down