Skip to content

SEP-2164: Standardize resource not found error code (-32602)#2164

Open
pja-ant wants to merge 5 commits intomainfrom
sep/resource-not-found-error
Open

SEP-2164: Standardize resource not found error code (-32602)#2164
pja-ant wants to merge 5 commits intomainfrom
sep/resource-not-found-error

Conversation

@pja-ant
Copy link
Contributor

@pja-ant pja-ant commented Jan 28, 2026

This SEP standardizes the error code for resource not found from -32002 to -32602 (Invalid Params), aligning with the JSON-RPC specification. Includes the draft spec change.

@pja-ant pja-ant force-pushed the sep/resource-not-found-error branch from 348d8e7 to 310784e Compare January 28, 2026 17:45
@pja-ant pja-ant changed the title SEP: Standardize resource not found error code (-32602) SEP-2164: Standardize resource not found error code (-32602) Jan 28, 2026
@pja-ant pja-ant marked this pull request as ready for review January 28, 2026 17:48
@pja-ant pja-ant requested a review from a team as a code owner January 28, 2026 17:48
@maxisbey
Copy link
Contributor

related: modelcontextprotocol/python-sdk#1821

@jonathanhefner
Copy link
Member

Previous discussion (for reference): #1545.

@pja-ant
Copy link
Contributor Author

pja-ant commented Jan 30, 2026

Previous discussion (for reference): #1545.

yeah I remember this, but didn't realize it was already so inconsistent. Any client has to handle various values anyway to work with real servers out there, so we might as well just trying and get all servers to converge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal SEP proposal without a sponsor. SEP

Projects

Status: Draft

Development

Successfully merging this pull request may close these issues.

4 participants