Werk #16582: passwords: Fix internal server error when creating a password in CME with a non existent customer

Component REST API
Title passwords: Fix internal server error when creating a password in CME with a non existent customer
Date Mar 12, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previous this Werk, a status code 500 (Internal server error) was raised when creating a password with a non existent customer. This werk fixes that and now it returns a status code 400 (Bad request) with proper informaiton about the error

To the list of all Werks