[PR #1458] feat: allow full HTTP status codes for health checks #5727

Closed
opened 2026-03-01 15:42:24 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/0xJacky/nginx-ui/pull/1458

State: closed
Merged: Yes


Add 401 Unauthorized to the health check's expected status codes dropdown.

This allows sites requiring authentication to correctly configure 401 Unauthorized as an expected status, preventing them from being mistakenly flagged as unhealthy.


Open in Cursor Open in Web


Note

Expands the health check "Expected Status Codes" dropdown to include all grouped HTTP 1xx–5xx codes, replacing hardcoded options.

  • Frontend
    • app/src/views/dashboard/components/SiteHealthCheckModal.vue:
      • Add StatusCodeOption/StatusCodeGroup interfaces and createStatusOption helper; define grouped status lists for 1xx–5xx.
      • Replace hardcoded ASelectOptions with grouped options using ASelectOptGroup and v-for to render all HTTP codes.

Written by Cursor Bugbot for commit c4e1bee26a. This will update automatically on new commits. Configure here.

**Original Pull Request:** https://github.com/0xJacky/nginx-ui/pull/1458 **State:** closed **Merged:** Yes --- Add `401 Unauthorized` to the health check's expected status codes dropdown. This allows sites requiring authentication to correctly configure `401 Unauthorized` as an expected status, preventing them from being mistakenly flagged as unhealthy. --- <a href="https://cursor.com/background-agent?bcId=bc-399947a5-c208-487d-a0fb-ec1bb7397df2"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-399947a5-c208-487d-a0fb-ec1bb7397df2"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Expands the health check "Expected Status Codes" dropdown to include all grouped HTTP 1xx–5xx codes, replacing hardcoded options. > > - **Frontend** > - **`app/src/views/dashboard/components/SiteHealthCheckModal.vue`**: > - Add `StatusCodeOption`/`StatusCodeGroup` interfaces and `createStatusOption` helper; define grouped status lists for 1xx–5xx. > - Replace hardcoded `ASelectOption`s with grouped options using `ASelectOptGroup` and `v-for` to render all HTTP codes. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit c4e1bee26ab9176dcad5f7e32572f39f6207ad99. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
kerem 2026-03-01 15:42:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#5727
No description provided.