Skip to content

Commit b89b7f0

Browse files
committed
Fixed repsonse codes (#218).
1 parent 53845f3 commit b89b7f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/gitlab4j/api/EpicsApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public Epic updateEpic(Object groupIdOrPath, Integer epicIid, String title, Stri
258258
.withParam("description", description)
259259
.withParam("start_date", startDate)
260260
.withParam("end_date", endDate);
261-
Response response = put(Response.Status.CREATED, formData.asMap(),
261+
Response response = put(Response.Status.OK, formData.asMap(),
262262
"groups", getGroupIdOrPath(groupIdOrPath), "epics", epicIid);
263263
return (response.readEntity(Epic.class));
264264
}
@@ -288,7 +288,7 @@ public Epic updateEpic(Object groupIdOrPath, Integer epicIid, Epic epic) throws
288288
.withParam("description", epic.getDescription())
289289
.withParam("start_date", epic.getStartDate())
290290
.withParam("end_date", epic.getEndDate());
291-
Response response = put(Response.Status.CREATED, formData.asMap(),
291+
Response response = put(Response.Status.OK, formData.asMap(),
292292
"groups", getGroupIdOrPath(groupIdOrPath), "epics", epicIid);
293293
return (response.readEntity(Epic.class));
294294
}
@@ -384,7 +384,7 @@ public EpicIssue assignIssue(Object groupIdOrPath, Integer epicIid, Integer issu
384384
* @throws GitLabApiException if any exception occurs
385385
*/
386386
public EpicIssue removeIssue(Object groupIdOrPath, Integer epicIid, Integer issueIid) throws GitLabApiException {
387-
Response response = delete(Response.Status.CREATED, null,
387+
Response response = delete(Response.Status.OK, null,
388388
"groups", getGroupIdOrPath(groupIdOrPath), "epics", epicIid, "issues", issueIid);
389389
return (response.readEntity(EpicIssue.class));
390390
}
@@ -406,7 +406,7 @@ public EpicIssue updateIssue(Object groupIdOrPath, Integer epicIid, Integer issu
406406
GitLabApiForm form = new GitLabApiForm()
407407
.withParam("move_before_id", moveBeforeId)
408408
.withParam("move_after_id", moveAfterId);
409-
Response response = post(Response.Status.CREATED, form,
409+
Response response = post(Response.Status.OK, form,
410410
"groups", getGroupIdOrPath(groupIdOrPath), "epics", epicIid, "issues", issueIid);
411411
return (response.readEntity(EpicIssue.class));
412412
}

0 commit comments

Comments
 (0)