Reschedule-check 500 error

We use this kind of filter o rescheduled all the services of one host.
{ “type”: “Service”, “filter”: ““hostname””, “force”: true, “pretty”: true }’

When the host has no services api answer 500.
Is this correct?
I think no. must be 200 with empty array or at 404

Thanks in advance

No, status code 500 should never occur as it indicates an interval server error, so can you open an issue at or add to "500 Internal Server Error" instead of "404 Not Found" on non-matching filter in API request · Issue #7956 · Icinga/icinga2 · GitHub if you think this one fits?

Many thanks I merge code from this issue and now has a new docker image that answer 404