Skip to content

fix: return 404 instead of 400 for invalid MCP-Session-Id#400

Merged
MQ37 merged 1 commit intomasterfrom
claude/fix-open-issues-sZXMb
Jan 26, 2026
Merged

fix: return 404 instead of 400 for invalid MCP-Session-Id#400
MQ37 merged 1 commit intomasterfrom
claude/fix-open-issues-sZXMb

Conversation

@MQ37
Copy link
Contributor

@MQ37 MQ37 commented Jan 22, 2026

Changes HTTP status code from 400 (Bad Request) to 404 (Not Found) when an invalid MCP-Session-Id is provided. This is semantically more accurate since the session resource doesn't exist, rather than the request being malformed.

Fixes #378

PR in the internal repo https://github.com/apify/apify-mcp-server-internal/pull/292

Changes HTTP status code from 400 (Bad Request) to 404 (Not Found) when an invalid MCP-Session-Id is provided. This is semantically more accurate since the session resource doesn't exist, rather than the request being malformed.

Fixes #378
@github-actions github-actions bot added the t-ai Issues owned by the AI team. label Jan 22, 2026
@MQ37 MQ37 requested review from jirispilka and removed request for jirispilka January 22, 2026 08:15
@MQ37
Copy link
Contributor Author

MQ37 commented Jan 26, 2026

FYI @jirispilka

@MQ37 MQ37 merged commit fed5e02 into master Jan 26, 2026
2 checks passed
@MQ37 MQ37 deleted the claude/fix-open-issues-sZXMb branch January 26, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The server should return HTTP 404 instead of 400 on invalid MCP-Session-Id

2 participants