Skip to content

Commit e5d69b1

Browse files
authored
Return a 401 on invalid scopes (#620)
1 parent 0a541ef commit e5d69b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/mcp-cloudflare/src/server/lib/mcp-handler.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const mcpHandler: ExportedHandler<Env> = {
146146
);
147147
return new Response(
148148
"Authorization failed: No valid permissions were granted. Please re-authorize and select at least one permission.",
149-
{ status: 400 },
149+
{ status: 401 },
150150
);
151151
}
152152

0 commit comments

Comments
 (0)