Path: blob/main/components/gitpod-protocol/go/error.go
2498 views
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package protocol56const (78// 400 Unauthorized9BAD_REQUEST = 4001011// 401 Unauthorized12NOT_AUTHENTICATED = 4011314// 403 Forbidden15PERMISSION_DENIED = 4031617// 404 Not Found18NOT_FOUND = 4041920// 409 Conflict (e.g. already existing)21CONFLICT = 4092223// 411 No User24NEEDS_VERIFICATION = 4112526// 429 Too Many Requests27TOO_MANY_REQUESTS = 4292829// 430 Repository not whitelisted (custom status code)30REPOSITORY_NOT_WHITELISTED = 4303132// 451 Out of credits33PAYMENT_SPENDING_LIMIT_REACHED = 4513435// 451 Error creating a subscription36SUBSCRIPTION_ERROR = 4523738// 455 Invalid cost center (custom status code)39INVALID_COST_CENTER = 4554041// 460 Context Parse Error (custom status code)42CONTEXT_PARSE_ERROR = 4604344// 461 Invalid gitpod yml45INVALID_GITPOD_YML = 4614647// 470 User Blocked (custom status code)48USER_BLOCKED = 4704950// 472 Terms Acceptance Required (custom status code)51USER_TERMS_ACCEPTANCE_REQUIRED = 4725253// 481 Professional plan is required for this operation54PLAN_PROFESSIONAL_REQUIRED = 4815556// 490 Too Many Running Workspace57TOO_MANY_RUNNING_WORKSPACES = 4905859// 500 Internal Server Error60INTERNAL_SERVER_ERROR = 5006162// 501 EE Feature63EE_FEATURE = 5016465// 555 EE License Required66EE_LICENSE_REQUIRED = 5556768// 601 SaaS Feature69SAAS_FEATURE = 6017071// 630 Snapshot Error72SNAPSHOT_ERROR = 6307374// 640 Headless logs are not available (yet)75HEADLESS_LOG_NOT_YET_AVAILABLE = 6407677// 650 Invalid Value78INVALID_VALUE = 65079)808182