diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 11:18:23 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 11:18:23 -0400 |
commit | e21d1c741ae498d6790965117b824737de4e8c97 (patch) | |
tree | d42b3487b7e248a8c2955c8967f202f08969d898 /pkg/api/api0 | |
parent | 09a7b60b359d7a1b760838d20aa8b8f2b67b983a (diff) | |
download | Atlas-e21d1c741ae498d6790965117b824737de4e8c97.tar.gz Atlas-e21d1c741ae498d6790965117b824737de4e8c97.zip |
pkg/api/api0: Add BAD_REQUEST error
Diffstat (limited to 'pkg/api/api0')
-rw-r--r-- | pkg/api/api0/errors.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/api/api0/errors.go b/pkg/api/api0/errors.go index 18e814b..ad58224 100644 --- a/pkg/api/api0/errors.go +++ b/pkg/api/api0/errors.go @@ -21,6 +21,7 @@ const ( const ( ErrorCode_INTERNAL_SERVER_ERROR ErrorCode = "INTERNAL_SERVER_ERROR" + ErrorCode_BAD_REQUEST ErrorCode = "BAD_REQUEST" ) // Message returns the default message for error code n. @@ -52,6 +53,8 @@ func (n ErrorCode) Message() string { return "A server with this port already exists for your IP address" case ErrorCode_INTERNAL_SERVER_ERROR: return "Internal server error" + case ErrorCode_BAD_REQUEST: + return "Bad request" default: return string(n) } |