aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/api0/errors.go')
-rw-r--r--pkg/api/api0/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/api/api0/errors.go b/pkg/api/api0/errors.go
index e407be6..244200b 100644
--- a/pkg/api/api0/errors.go
+++ b/pkg/api/api0/errors.go
@@ -21,6 +21,7 @@ const (
ErrorCode_JSON_PARSE_ERROR ErrorCode = "JSON_PARSE_ERROR" // Error parsing json response
ErrorCode_UNSUPPORTED_VERSION ErrorCode = "UNSUPPORTED_VERSION" // The version you are using is no longer supported
ErrorCode_DUPLICATE_SERVER ErrorCode = "DUPLICATE_SERVER" // A server with this port already exists for your IP address
+ ErrorCode_CONNECTION_REJECTED ErrorCode = "CONNECTION_REJECTED" // Connection rejected
)
const (
@@ -88,6 +89,8 @@ func (n ErrorCode) Message() string {
return "Internal server error"
case ErrorCode_BAD_REQUEST:
return "Bad request"
+ case ErrorCode_CONNECTION_REJECTED:
+ return "Connection rejected"
default:
return string(n)
}