User Request
Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: d3090d81-aa9a-404e-9275-432fcd4a9e4e
Description
What happened:
In pkg/api/handlers/mcp_resources.go:201 and 204, c.Status(400) is used as a bare integer literal. The same file uses fiber.StatusBadRequest in other places (e.g. line 219), making the code inconsistent and harder to audit.
What I expected:
All 400 status returns should use fiber.StatusBadRequest consistent with the rest of the file.
Steps to reproduce:
- Review mcp_resources.go:201 and 204 vs line 219
- Observe inconsistent use of raw literal vs named constant
This issue was automatically created from the KubeStellar Console.
User Request
Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: d3090d81-aa9a-404e-9275-432fcd4a9e4e
Description
What happened:
In
pkg/api/handlers/mcp_resources.go:201and204,c.Status(400)is used as a bare integer literal. The same file usesfiber.StatusBadRequestin other places (e.g. line 219), making the code inconsistent and harder to audit.What I expected:
All 400 status returns should use
fiber.StatusBadRequestconsistent with the rest of the file.Steps to reproduce:
This issue was automatically created from the KubeStellar Console.