Allow apiactions to return sucecss http codes different from 200

This commit is contained in:
Benjamin Groeber 2020-06-23 11:52:22 +02:00 committed by Noah Hilverling
parent b3a504bc9c
commit 8bd829b4ae

View File

@ -94,7 +94,7 @@ bool ActionsHandler::HandleRequest(
int statusCode = 500;
for (const Dictionary::Ptr& res : results) {
if (res->Contains("code") && res->Get("code") == 200) {
if (res->Contains("code") && res->Get("code") >= 200 && res->Get("code") <= 299) {
statusCode = 200;
break;
}