From 9a3e03f8f2480db335af39a10102e24c80fcd950 Mon Sep 17 00:00:00 2001 From: Tim Shaker <5200096+tmshkr@users.noreply.github.com> Date: Tue, 5 May 2026 22:34:09 -0700 Subject: [PATCH] Change error response status from 400 to 404 for invalid sessions --- docs/docs/tutorials/security/authorization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/tutorials/security/authorization.mdx b/docs/docs/tutorials/security/authorization.mdx index 4895907fe..9b0ef600a 100644 --- a/docs/docs/tutorials/security/authorization.mdx +++ b/docs/docs/tutorials/security/authorization.mdx @@ -567,7 +567,7 @@ const mcpPostHandler = async (req: express.Request, res: express.Response) => { const server = createMcpServer(); await server.connect(transport); } else { - res.status(400).json({ + res.status(404).json({ jsonrpc: "2.0", error: { code: -32000,