Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-protocol/go/error.go
2498 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package protocol
6
7
const (
8
9
// 400 Unauthorized
10
BAD_REQUEST = 400
11
12
// 401 Unauthorized
13
NOT_AUTHENTICATED = 401
14
15
// 403 Forbidden
16
PERMISSION_DENIED = 403
17
18
// 404 Not Found
19
NOT_FOUND = 404
20
21
// 409 Conflict (e.g. already existing)
22
CONFLICT = 409
23
24
// 411 No User
25
NEEDS_VERIFICATION = 411
26
27
// 429 Too Many Requests
28
TOO_MANY_REQUESTS = 429
29
30
// 430 Repository not whitelisted (custom status code)
31
REPOSITORY_NOT_WHITELISTED = 430
32
33
// 451 Out of credits
34
PAYMENT_SPENDING_LIMIT_REACHED = 451
35
36
// 451 Error creating a subscription
37
SUBSCRIPTION_ERROR = 452
38
39
// 455 Invalid cost center (custom status code)
40
INVALID_COST_CENTER = 455
41
42
// 460 Context Parse Error (custom status code)
43
CONTEXT_PARSE_ERROR = 460
44
45
// 461 Invalid gitpod yml
46
INVALID_GITPOD_YML = 461
47
48
// 470 User Blocked (custom status code)
49
USER_BLOCKED = 470
50
51
// 472 Terms Acceptance Required (custom status code)
52
USER_TERMS_ACCEPTANCE_REQUIRED = 472
53
54
// 481 Professional plan is required for this operation
55
PLAN_PROFESSIONAL_REQUIRED = 481
56
57
// 490 Too Many Running Workspace
58
TOO_MANY_RUNNING_WORKSPACES = 490
59
60
// 500 Internal Server Error
61
INTERNAL_SERVER_ERROR = 500
62
63
// 501 EE Feature
64
EE_FEATURE = 501
65
66
// 555 EE License Required
67
EE_LICENSE_REQUIRED = 555
68
69
// 601 SaaS Feature
70
SAAS_FEATURE = 601
71
72
// 630 Snapshot Error
73
SNAPSHOT_ERROR = 630
74
75
// 640 Headless logs are not available (yet)
76
HEADLESS_LOG_NOT_YET_AVAILABLE = 640
77
78
// 650 Invalid Value
79
INVALID_VALUE = 650
80
)
81
82