From ad8f7facf7461ba89646f36be43f481fd0b63b34 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Tue, 27 Jan 2015 14:28:54 -0800 Subject: [PATCH] add missing status codes Signed-off-by: Victor Vieux --- api/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/api.go b/api/api.go index 4a83d39961..5b5f56cbba 100644 --- a/api/api.go +++ b/api/api.go @@ -223,6 +223,7 @@ func postContainersCreate(c *context, w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusCreated) fmt.Fprintf(w, "{%q:%q}", "Id", container.Id) return } @@ -245,7 +246,7 @@ func deleteContainer(c *context, w http.ResponseWriter, r *http.Request) { httpError(w, err.Error(), http.StatusInternalServerError) return } - + w.WriteHeader(http.StatusNoContent) } // GET /events