Skip to content

Commit

Permalink
POSTs return 201s when creating resources
Browse files Browse the repository at this point in the history
  • Loading branch information
louismrose committed May 1, 2024
1 parent c5577cf commit 449d1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zamzar/mock/ConfigureWireMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ protected void stubCreate(String resource, String contentType) {
.withHeader("Content-Type", containing(contentType))
.atPriority(2) // to allow overriding for, say, returning 422s
.willReturn(aResponse()
.withStatus(200)
.withStatus(201)
.withHeader("Content-Type", "application/json")
.withBodyFile(resource + "/1.initialising.json")
));
Expand Down

0 comments on commit 449d1de

Please sign in to comment.