Werk #16207: host_tag_group: Fix 500 status code when creating a host_tag_group with id already in use

Component REST API
Title host_tag_group: Fix 500 status code when creating a host_tag_group with id already in use
Date Dec 14, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Before this Werk, when trying to create a host_tag_group using an id belonging to an aux_tag the endpoint returned a status 500 (Internal Server Error). This Werk fixes that behaviour and now returns a status 400, informing that the id is in use.

CMK-15167

To the list of all Werks