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