Skip to content

Commit

Permalink
fix(api): change task ID runs success status from 200 to 201
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincabbage committed Oct 26, 2019
1 parent 89b7547 commit 11b0524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/task_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ func (h *TaskHandler) handleForceRun(w http.ResponseWriter, r *http.Request) {
h.HandleHTTPError(ctx, err, w)
return
}
if err := encodeResponse(ctx, w, http.StatusOK, newRunResponse(*run)); err != nil {
if err := encodeResponse(ctx, w, http.StatusCreated, newRunResponse(*run)); err != nil {
logEncodingError(h.logger, r, err)
return
}
Expand Down

0 comments on commit 11b0524

Please sign in to comment.