mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Allow apiactions to return sucecss http codes different from 200
This commit is contained in:
parent
e9b6c68fd5
commit
cc6fa66ba6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user