Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
### Breaking changes

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

* to be updated
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public HttpResponseMessage createCheckStatusResponse(HttpRequestMessage<?> reque

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

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