Title: spec defines improper error codes · Issue #509 · modelcontextprotocol/modelcontextprotocol · GitHub
Open Graph Title: spec defines improper error codes · Issue #509 · modelcontextprotocol/modelcontextprotocol
X Title: spec defines improper error codes · Issue #509 · modelcontextprotocol/modelcontextprotocol
Description: The specification sometimes defines error codes, but these codes are in the JSON-RPC2 implementation space, not the application space. For example, in the Resources section, the "Resource not found" error is given the value -32002. The J...
Open Graph Description: The specification sometimes defines error codes, but these codes are in the JSON-RPC2 implementation space, not the application space. For example, in the Resources section, the "Resource not found...
X Description: The specification sometimes defines error codes, but these codes are in the JSON-RPC2 implementation space, not the application space. For example, in the Resources section, the "Resource not ...
Opengraph URL: https://github.com/modelcontextprotocol/modelcontextprotocol/issues/509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"spec defines improper error codes","articleBody":"The specification sometimes defines error codes, but these codes are in the JSON-RPC2 implementation space, not the application space.\n\nFor example, in [the Resources section](https://modelcontextprotocol.io/specification/2025-03-26/server/resources#resource-templates), the \"Resource not found\" error is given the value -32002.\n[The JSON-RPC2 spec](https://www.jsonrpc.org/specification) section 5.1 says that codes from -32000 to -32099 are reserved for \"implementation-defined server-errors.\" This means JSON-RPC2 implementations, as the next sentence clarifies: \"The remainder of the space is available for application defined errors.\"\n\nSince MCP is an application, not a JSON-RPC2 implementation, it should use codes above -32000.\n","author":{"url":"https://github.com/jba","@type":"Person","name":"jba"},"datePublished":"2025-05-11T13:34:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/509/modelcontextprotocol/issues/509"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62315ecd-8375-100b-41aa-244c09c395c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB12:3C66C3:1ADA68:25F350:6A572260 |
| html-safe-nonce | b760aa8257a1eeb53e5a173cc2587ac9605a1dd63c6107efcfb4edef59ff9775 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjEyOjNDNjZDMzoxQURBNjg6MjVGMzUwOjZBNTcyMjYwIiwidmlzaXRvcl9pZCI6IjQ3MDI4NTQzNDYxMTA4NzAxMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2360cd722367f6060eaeaf83573d080dd93bee2c04fe3a174d08f442ee7236b5 |
| hovercard-subject-tag | issue:3054995688 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/modelcontextprotocol/509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2736c5d063190d8b7126dbafeb85320040effd3d54ebe602b8d1bcc6945334d5/modelcontextprotocol/modelcontextprotocol/issues/509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2736c5d063190d8b7126dbafeb85320040effd3d54ebe602b8d1bcc6945334d5/modelcontextprotocol/modelcontextprotocol/issues/509 |
| og:image:alt | The specification sometimes defines error codes, but these codes are in the JSON-RPC2 implementation space, not the application space. For example, in the Resources section, the "Resource not found... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jba |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/modelcontextprotocol git https://github.com/modelcontextprotocol/modelcontextprotocol.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862570523 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/modelcontextprotocol |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862570523 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/modelcontextprotocol |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width