Werk #15979: bi: return 404 status code when trying to retrieve a non existing rule

Component REST API
Title bi: return 404 status code when trying to retrieve a non existing rule
Date Jul 12, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.0.0p38 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Prior to this werk, the get bi rule endpoint returned a 500 status code whenever the user tried to get a non existing rule. This werk fixes this and returns a 404 status code instead.

To the list of all Werks