HTTP error codes

Hi,

Noticed in the latest versions that if we pass on check results to the Icinga2 api, the error code is always the same for the following:

  • Host exists, service does not exist
  • Host does not exist

Both give 500 Internal Server Error. I believe it used to give a 404 on previous version (believe we were on 2.10.x). Is it possible this can be looked at again as we look to queue these differently and if the host or service does not exist then this can be destroyed instead.

We are currently running 2.11.3.

Thanks,
GK