-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
34 lines (25 loc) · 817 Bytes
/
const.go
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
package jsonrpc
const (
// Version const for define version of protocol
// @see https://www.jsonrpc.org/specification#request_object
Version = "2.0"
)
// @see http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php
const (
// ParseErrorCode : parse error. not well formed
ParseErrorCode = -32700
// InvalidRequestErrorCode : Invalid Request
InvalidRequestErrorCode = -32600
// MethodNotFoundErrorCode : requested method not found
MethodNotFoundErrorCode = -32601
// InvalidParamsErrorCode : invalid method parameters
InvalidParamsErrorCode = -32602
// InternalErrorCode : Internal error
InternalErrorCode = -32603
// OK : everything is ok
OK = 0
//MethodNotImplemented : use for develop method
MethodNotImplemented = -32604
//RequestTimeLimit : tooooo long
RequestTimeLimit = -32605
)