Skip to content

Conversation

@0xJacky
Copy link
Owner

@0xJacky 0xJacky commented Nov 28, 2025

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 c4e1bee. This will update automatically on new commits. Configure here.

Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>
@cursor
Copy link

cursor bot commented Nov 28, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 2 commits November 28, 2025 03:05
Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>
Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>
@0xJacky 0xJacky changed the title Update nginx ui to vue 3 feat: allow full HTTP status codes for health checks Nov 28, 2025
Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>
@0xJacky
Copy link
Owner Author

0xJacky commented Nov 28, 2025

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!


@0xJacky 0xJacky marked this pull request as ready for review November 28, 2025 03:15
@0xJacky 0xJacky merged commit 1fe22a9 into dev Nov 28, 2025
40 checks passed
0xJacky added a commit that referenced this pull request Nov 28, 2025
* Add 401 Unauthorized to SiteHealthCheckModal status codes

Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>

* Checkpoint before follow-up message

Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>

* Refactor status code selection to use grouped options

Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>

* Fix: Correct apostrophe in "I'm a teapot" status

Co-authored-by: jacky-943572677 <jacky-943572677@qq.com>

---------

Co-Authored-By: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants