Reschedule-check 500 error

Hi,
We use this kind of filter o rescheduled all the services of one host.
{ “type”: “Service”, “filter”: “host.name==“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 https://github.com/Icinga/icinga2/issues/new?assignees=&labels=&template=bug_report.md&title= 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