Skip to content

Commit 9b0909f

Browse files
Update DurableClientContext.createCheckStatusResponse to return 202 (#93)
* Updated DurableClientContext.createCheckStatusResponse to return 202 * Updated CHANGELOG.md
1 parent 066f086 commit 9b0909f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
### Breaking changes
1717

1818
* Use java worker middleware to avoid wrapper method when create orchestrator function ([#87](https://github.com/microsoft/durabletask-java/pull/87))
19+
* Fixed DurableClientContext.createCheckStatusResponse to return 202 ([#92](https://github.com/microsoft/durabletask-java/pull/92))
1920

2021
* to be updated

azurefunctions/src/main/java/com/microsoft/durabletask/azurefunctions/DurableClientContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public HttpResponseMessage createCheckStatusResponse(HttpRequestMessage<?> reque
7070

7171
String instanceStatusURL = baseUrl + "/runtime/webhooks/durabletask/instances/" + encodedInstanceId;
7272

73-
// Construct the response as an HTTP 201 with a JSON object payload
74-
return request.createResponseBuilder(HttpStatus.CREATED)
73+
// Construct the response as an HTTP 202 with a JSON object payload
74+
return request.createResponseBuilder(HttpStatus.ACCEPTED)
7575
.header("Location", instanceStatusURL + "?" + this.requiredQueryStringParameters)
7676
.header("Content-Type", "application/json")
7777
.body(new HttpCreateCheckStatusResponse(

0 commit comments

Comments
 (0)