add missing status codes

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2015-01-27 14:28:54 -08:00
parent 0c446154d4
commit ad8f7facf7
1 changed files with 2 additions and 1 deletions

View File

@ -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