-
Notifications
You must be signed in to change notification settings - Fork 4
/
errors.go
31 lines (30 loc) · 1.44 KB
/
errors.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
package api
const (
ParseError = -31700
ParseErrorShort = "ParseError"
ParseErrorMessage = "Parsing error on the server side: received an invalid JSON."
InvalidRequestError = -31600
InvalidRequestErrorShort = "InvalidRequest"
InvalidRequestErrorMessage = "The JSON received is not a valid request payload."
MethodNotFoundError = -31601
MethodNotFoundErrorShort = "MethodNotFound"
MethodNotFoundErrorMessage = "Method does not exist / is not available."
InvalidParamsError = -31602
InvalidParamsErrorShort = "InvalidParams"
InvalidParamsErrorMessage = "Invalid method parameter(s)."
InternalError = -31603
InternalErrorShort = "Internal"
InternalErrorMessage = "Internal Platform error."
TimeoutError = -31106
TimeoutErrorShort = "Timeout"
TimeoutErrorMessage = "Request's timeout has expired."
UnauthorizedError = -31401
UnauthorizedErrorShort = "Unauthorized"
UnauthorizedErrorMessage = "Action is not authorized."
ExecutionError = -31103
ExecutionErrorShort = "Execution"
ExecutionErrorMessage = "Execution error."
ServiceUnavailableError = -31429
ServiceUnavailableErrorShort = "ServiceUnavailable"
ServiceUnavailableErrorMessage = "Service unavailable, try again later."
)