23 lines
950 B
Go
23 lines
950 B
Go
// Package constants define constant variable
|
|
package constants
|
|
|
|
const (
|
|
// RespCodeSuccess define constant to indicates that the API was processed success
|
|
RespCodeSuccess = 2000
|
|
|
|
// RespCodeSuccessWithNoSub define constant to ndicates that the request was processed successfully, with all subscriptions removed for the given client_id.
|
|
RespCodeSuccessWithNoSub = 2101
|
|
|
|
// RespCodeFailed define constant to indicates that the API was processed failed
|
|
RespCodeFailed = 3000
|
|
|
|
// RespCodeInvalidParams define constant to indicates that the request parameters failed to validate, parsing failed, or the action is invalid
|
|
RespCodeInvalidParams = 4001
|
|
|
|
// RespCodeUnauthorized define constant to indicates insufficient permissions or an invalid ClientID
|
|
RespCodeUnauthorized = 4002
|
|
|
|
// RespCodeServerError define constants to indicates a serious internal server error (such as database disconnection or code panic)
|
|
RespCodeServerError = 5000
|
|
)
|