From 9dcb36dfa257978de8600e8b031bc44ecfcccd73 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 7 Feb 2017 17:02:50 +0100 Subject: [PATCH] Merge pull request #30734 from allencloud/add-400-status-code-for-events-endpoint add status code 400 for api endpoint /events (cherry picked from commit f3da980a459c11a35248daa8a6be9919bf65fda2) Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 4 ++++ docs/api/v1.24.md | 1 + 2 files changed, 5 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index bfefac25a4..c63acf30d4 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -5333,6 +5333,10 @@ paths: image: "alpine" name: "my-container" time: 1461943101 + 400: + description: "bad parameter" + schema: + $ref: "#/definitions/ErrorResponse" 500: description: "server error" schema: diff --git a/docs/api/v1.24.md b/docs/api/v1.24.md index 663a39236f..b86a102dc8 100644 --- a/docs/api/v1.24.md +++ b/docs/api/v1.24.md @@ -2632,6 +2632,7 @@ Docker daemon report the following event: **Status codes**: - **200** – no error +- **400** - bad parameter - **500** – server error #### Get a tarball containing all images in a repository