Skip to content

Fix status code on failed request in dev tools#8052

Merged
yenienserrano merged 2 commits into4.14.4from
bug/8051-status-code-dev-tools-on-errors
Jan 22, 2026
Merged

Fix status code on failed request in dev tools#8052
yenienserrano merged 2 commits into4.14.4from
bug/8051-status-code-dev-tools-on-errors

Conversation

@Desvelao
Copy link
Copy Markdown
Member

@Desvelao Desvelao commented Jan 20, 2026

Description

This pull request fixes a problem with the status code and body displayed in the Server management > Dev Tools for failed requests due to an internal server error.

Issues Resolved

#8051

Evidence

Image

Test

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
Using a real manager, go to Server management > Dev tools and run a request to an unexistant endpoint, this should return a status code of 404 and a body related to the status code.

Details

⚫ Using a real manager, go to Server management > Dev tools and run a request to an unexistant endpoint, this should return a status code of 404 and a body related to the status code.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@Desvelao Desvelao self-assigned this Jan 20, 2026
@Desvelao Desvelao marked this pull request as ready for review January 20, 2026 16:11
@Desvelao Desvelao linked an issue Jan 20, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

Wazuh Core plugin code coverage (Jest) test % values
Statements 48.3% ( 443 / 917 )
Branches 43.9% ( 173 / 394 )
Functions 44.81% ( 147 / 328 )
Lines 48.45% ( 440 / 908 )

@github-actions
Copy link
Copy Markdown
Contributor

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 78.72% ( 185 / 235 )
Branches 62.72% ( 69 / 110 )
Functions 61.7% ( 29 / 47 )
Lines 78.72% ( 185 / 235 )

@github-actions
Copy link
Copy Markdown
Contributor

Main plugin code coverage (Jest) test % values
Statements 18.32% ( 5770 / 31487 )
Branches 12.75% ( 2564 / 20099 )
Functions 19.01% ( 1468 / 7720 )
Lines 18.52% ( 5615 / 30308 )

Copy link
Copy Markdown
Contributor

@Ripdiegozz Ripdiegozz left a comment

Choose a reason for hiding this comment

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

🟢 LGTM

Test Chrome Firefox Safari
Using a real manager, go to Server management > Dev tools and run a request to an unexistant endpoint, this should return a status code of 404 and a body related to the status code. 🟢 🟢
Manager configuration

image

Chrome

image

Firefox

image

Copy link
Copy Markdown
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

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

LGTM 🟢

image image image

@yenienserrano yenienserrano merged commit d7b9989 into 4.14.4 Jan 22, 2026
8 checks passed
@yenienserrano yenienserrano deleted the bug/8051-status-code-dev-tools-on-errors branch January 22, 2026 21:04
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.

Error 500 on dev tools for endpoints that returns error 404

3 participants