Skip to content

Commit 87607f1

Browse files
committed
Merge pull request QHedgeTech#7 from catholabs/set-json-status-code
Add HTTP status code to JSON output object
2 parents 2fd403b + 3f020c9 commit 87607f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http/http.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ unsigned int HTTP::request(const char* method, const char* endUrl, const char* d
275275
EXCEPTION("Unknown exception.");
276276
}
277277

278+
jOutput->addMemberByKey("status", statusCode);
278279
result = OK;
279280
return statusCode;
280281
}

0 commit comments

Comments
 (0)