Werk #14256: REST-API objects/ruleset: Change status code to 404 when ruleset doesn't exist

Component REST API
Title REST-API objects/ruleset: Change status code to 404 when ruleset doesn't exist
Date May 20, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p24 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The objects ruleset endpoint previously returned a 500 internal server error when the ruleset didn't exist. This werk changes the status code to a 404 'Unknown ruleset'

To the list of all Werks