|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "title": "JSON-RPC 2.0 Predefined Error Code", |
| 4 | + "description": "An error code from the predefined range reserved by the JSON-RPC 2.0 specification", |
| 5 | + "$comment": "https://www.jsonrpc.org/specification#error_object", |
| 6 | + "examples": [ -32700, -32600, -32601, -32602, -32603, -32000 ], |
| 7 | + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", |
| 8 | + "type": "integer", |
| 9 | + "anyOf": [ |
| 10 | + { |
| 11 | + "title": "Parse error", |
| 12 | + "description": "Invalid JSON was received by the server", |
| 13 | + "const": -32700 |
| 14 | + }, |
| 15 | + { |
| 16 | + "title": "Invalid request", |
| 17 | + "description": "The JSON sent is not a valid Request object", |
| 18 | + "const": -32600 |
| 19 | + }, |
| 20 | + { |
| 21 | + "title": "Method not found", |
| 22 | + "description": "The method does not exist / is not available", |
| 23 | + "const": -32601 |
| 24 | + }, |
| 25 | + { |
| 26 | + "title": "Invalid params", |
| 27 | + "description": "Invalid method parameter(s)", |
| 28 | + "const": -32602 |
| 29 | + }, |
| 30 | + { |
| 31 | + "title": "Internal error", |
| 32 | + "description": "Internal JSON-RPC error", |
| 33 | + "const": -32603 |
| 34 | + }, |
| 35 | + { |
| 36 | + "title": "Server error", |
| 37 | + "description": "Implementation-defined server error", |
| 38 | + "maximum": -32000, |
| 39 | + "minimum": -32099 |
| 40 | + } |
| 41 | + ] |
| 42 | +} |
0 commit comments