Skip to content

mcp_resources.go uses raw 400 integer literals instead of fiber.StatusBadRequest constant #7801

@aashu2006

Description

@aashu2006

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:

  1. Review mcp_resources.go:201 and 204 vs line 219
  2. Observe inconsistent use of raw literal vs named constant

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedai-processingAI is currently processing this issuekind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions