Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #18991: Fix status codes on ajax calls

Component User interface
Title Fix status codes on ajax calls
Date Mar 31, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0b3 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Previously, when an AJAX request triggered an error (e.g. due to an unauthenticated request), the server always responded with 200 OK containing a JSON error body like:

{"result_code": 1, "result": "Not authenticated: You are not authenticated.", "severity": "error"}

This caused AJAX error handlers that check HTTP status codes to not trigger, resulting in the raw JSON being rendered in the UI instead of proper error handling.

The server now returns the correct HTTP status code (e.g. 401 for unauthenticated requests) alongside the JSON error body.

To the list of all Werks