diff --git a/handlers/entities.go b/handlers/entities.go index 0b1b2d1..62a6e72 100644 --- a/handlers/entities.go +++ b/handlers/entities.go @@ -110,7 +110,10 @@ func handleCreater(c api.Creater) errorHandler { if err != nil { return newJSONError(err, http.StatusInternalServerError) } + + w.WriteHeader(http.StatusCreated) w.Write(data) + return nil } } @@ -129,6 +132,8 @@ func handleDeleter(d api.Deleter) errorHandler { return appErr } + w.WriteHeader(http.StatusNoContent) + return nil } }