MCP & Protocol Testing / Quiz
JSON-RPC Error Codes
-32700, -32601, -32602. The standard error codes are a contract too, and a server that returns the wrong one is lying to its clients.
- Difficulty
- Medium
- Format
- Quiz
- Points
- 150
- Estimate
- 10 min
// MISSION BRIEF
Your Mission
JSON-RPC 2.0 reserves a set of standard error codes with precise meanings. MCP servers inherit them. A protocol test suite should force each condition and assert the exact code, because clients branch on those numbers.
Scoring: equal weight per question.
// FIRST CONTACT
Battle teaser
The client sends a method the server does not implement. The correct code:
- A-32000 (Server error)
- B-32602 (Invalid params)
- C-32601 (Method not found)
- D-32700 (Parse error)
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
mcpjson-rpcprotocol-testingerror-codes