Versions in this module Expand all Collapse all v0 v0.11.2 Jul 10, 2026 Changes in this version + const CodeApplicationAPIKeyForbidden + const CodeApplicationAPIKeyNotFound + const CodeApplicationExists + const CodeApplicationNotFound + const CodeArtifactDeployed + const CodeArtifactExists + const CodeArtifactNotFound + const CodeArtifactReadOnly + const CodeArtifactRuntimeImmutable + const CodeCommonConflict + const CodeCommonForbidden + const CodeCommonInternalError + const CodeCommonNotAcceptable + const CodeCommonNotFound + const CodeCommonServiceUnavailable + const CodeCommonTooManyRequests + const CodeCommonUnauthorized + const CodeCommonUnprocessableEntity + const CodeCommonValidationFailed + const CodeCustomPolicyNotFound + const CodeCustomPolicyVersionNotFound + const CodeDeploymentActive + const CodeDeploymentBaseNotFound + const CodeDeploymentGatewayMismatch + const CodeDeploymentInvalidStatus + const CodeDeploymentNotActive + const CodeDeploymentNotFound + const CodeDeploymentRestoreConflict + const CodeGatewayConnectionUnavailable + const CodeGatewayHasActiveDeployments + const CodeGatewayNameConflict + const CodeGatewayNotFound + const CodeGatewayTokenLimitReached + const CodeGatewayTokenNotFound + const CodeLLMProviderAPIKeyForbidden + const CodeLLMProviderAPIKeyNotFound + const CodeLLMProviderDeploymentValidationFailed + const CodeLLMProviderExists + const CodeLLMProviderLimitReached + const CodeLLMProviderNotFound + const CodeLLMProviderRefNotFound + const CodeLLMProviderTemplateExists + const CodeLLMProviderTemplateInUse + const CodeLLMProviderTemplateManagedByReserved + const CodeLLMProviderTemplateNotFound + const CodeLLMProviderTemplateNotToggleable + const CodeLLMProviderTemplateReadOnly + const CodeLLMProviderTemplateRefNotFound + const CodeLLMProviderTemplateVersionExists + const CodeLLMProviderTemplateVersionNotFound + const CodeLLMProxyAPIKeyForbidden + const CodeLLMProxyAPIKeyNotFound + const CodeLLMProxyDeploymentValidationFailed + const CodeLLMProxyExists + const CodeLLMProxyLimitReached + const CodeLLMProxyNotFound + const CodeMCPProxyDeploymentValidationFailed + const CodeMCPProxyExists + const CodeMCPProxyLimitReached + const CodeMCPProxyNotFound + const CodeOrganizationExists + const CodeOrganizationNotFound + const CodePolicyInUse + const CodePolicyInvalidState + const CodePolicyVersionConflict + const CodeProjectExists + const CodeProjectNotFound + const CodeProjectRefNotFound + const CodeRESTAPIDeploymentValidationFailed + const CodeRESTAPIExists + const CodeRESTAPINotFound + const CodeSecretExists + const CodeSecretInUse + const CodeSecretNotFound + const CodeSubscriptionExists + const CodeSubscriptionForbidden + const CodeSubscriptionNotFound + const CodeSubscriptionPlanExists + const CodeSubscriptionPlanNotFound + var ApplicationAPIKeyForbidden = def(CodeApplicationAPIKeyForbidden, http.StatusForbidden, ...) + var ApplicationAPIKeyNotFound = def(CodeApplicationAPIKeyNotFound, http.StatusNotFound, ...) + var ApplicationExists = def(CodeApplicationExists, http.StatusConflict, ...) + var ApplicationNotFound = def(CodeApplicationNotFound, http.StatusNotFound, ...) + var ArtifactDeployed = def(CodeArtifactDeployed, http.StatusConflict, "%s") + var ArtifactExists = def(CodeArtifactExists, http.StatusConflict, "The artifact already exists.") + var ArtifactNotFound = def(CodeArtifactNotFound, http.StatusNotFound, ...) + var ArtifactReadOnly = def(CodeArtifactReadOnly, http.StatusForbidden, "%s") + var ArtifactRuntimeImmutable = def(CodeArtifactRuntimeImmutable, http.StatusForbidden, "%s") + var Conflict = def(CodeCommonConflict, http.StatusConflict, ...) + var CustomPolicyNotFound = def(CodeCustomPolicyNotFound, http.StatusNotFound, ...) + var CustomPolicyVersionNotFnd = def(CodeCustomPolicyVersionNotFound, http.StatusNotFound, ...) + var DeploymentActive = def(CodeDeploymentActive, http.StatusConflict, ...) + var DeploymentBaseNotFound = def(CodeDeploymentBaseNotFound, http.StatusNotFound, ...) + var DeploymentGatewayMismatch = def(CodeDeploymentGatewayMismatch, http.StatusBadRequest, ...) + var DeploymentInvalidStatus = def(CodeDeploymentInvalidStatus, http.StatusBadRequest, ...) + var DeploymentNotActive = def(CodeDeploymentNotActive, http.StatusConflict, ...) + var DeploymentNotFound = def(CodeDeploymentNotFound, http.StatusNotFound, ...) + var DeploymentRestoreConflict = def(CodeDeploymentRestoreConflict, http.StatusConflict, ...) + var Forbidden = def(CodeCommonForbidden, http.StatusForbidden, ...) + var GatewayConnectionUnavailable = def(CodeGatewayConnectionUnavailable, http.StatusServiceUnavailable, ...) + var GatewayHasActiveDeployments = def(CodeGatewayHasActiveDeployments, http.StatusConflict, ...) + var GatewayNameConflict = def(CodeGatewayNameConflict, http.StatusConflict, ...) + var GatewayNotFound = def(CodeGatewayNotFound, http.StatusNotFound, ...) + var GatewayTokenLimitReached = def(CodeGatewayTokenLimitReached, http.StatusConflict, ...) + var GatewayTokenNotFound = def(CodeGatewayTokenNotFound, http.StatusNotFound, ...) + var Internal = def(CodeCommonInternalError, http.StatusInternalServerError, ...) + var LLMProviderAPIKeyForbidden = def(CodeLLMProviderAPIKeyForbidden, http.StatusForbidden, ...) + var LLMProviderAPIKeyNotFound = def(CodeLLMProviderAPIKeyNotFound, http.StatusNotFound, ...) + var LLMProviderDeploymentValidationFailed = def(CodeLLMProviderDeploymentValidationFailed, http.StatusBadRequest, "%s") + var LLMProviderExists = def(CodeLLMProviderExists, http.StatusConflict, ...) + var LLMProviderLimitReached = def(CodeLLMProviderLimitReached, http.StatusConflict, ...) + var LLMProviderNotFound = def(CodeLLMProviderNotFound, http.StatusNotFound, ...) + var LLMProviderRefNotFound = def(CodeLLMProviderRefNotFound, http.StatusBadRequest, ...) + var LLMProviderTemplateExists = def(CodeLLMProviderTemplateExists, http.StatusConflict, ...) + var LLMProviderTemplateInUse = def(CodeLLMProviderTemplateInUse, http.StatusConflict, ...) + var LLMProviderTemplateManagedByReserved = def(CodeLLMProviderTemplateManagedByReserved, http.StatusBadRequest, ...) + var LLMProviderTemplateNotFound = def(CodeLLMProviderTemplateNotFound, http.StatusNotFound, ...) + var LLMProviderTemplateNotToggleable = def(CodeLLMProviderTemplateNotToggleable, http.StatusForbidden, ...) + var LLMProviderTemplateReadOnly = def(CodeLLMProviderTemplateReadOnly, http.StatusForbidden, ...) + var LLMProviderTemplateRefNotFound = def(CodeLLMProviderTemplateRefNotFound, http.StatusBadRequest, ...) + var LLMProviderTemplateVersionExists = def(CodeLLMProviderTemplateVersionExists, http.StatusConflict, ...) + var LLMProviderTemplateVersionNotFound = def(CodeLLMProviderTemplateVersionNotFound, http.StatusNotFound, ...) + var LLMProxyAPIKeyForbidden = def(CodeLLMProxyAPIKeyForbidden, http.StatusForbidden, ...) + var LLMProxyAPIKeyNotFound = def(CodeLLMProxyAPIKeyNotFound, http.StatusNotFound, ...) + var LLMProxyDeploymentValidationFailed = def(CodeLLMProxyDeploymentValidationFailed, http.StatusBadRequest, "%s") + var LLMProxyExists = def(CodeLLMProxyExists, http.StatusConflict, ...) + var LLMProxyLimitReached = def(CodeLLMProxyLimitReached, http.StatusConflict, ...) + var LLMProxyNotFound = def(CodeLLMProxyNotFound, http.StatusNotFound, ...) + var MCPProxyDeploymentValidationFailed = def(CodeMCPProxyDeploymentValidationFailed, http.StatusBadRequest, "%s") + var MCPProxyExists = def(CodeMCPProxyExists, http.StatusConflict, ...) + var MCPProxyLimitReached = def(CodeMCPProxyLimitReached, http.StatusConflict, ...) + var MCPProxyNotFound = def(CodeMCPProxyNotFound, http.StatusNotFound, ...) + var NotAcceptable = def(CodeCommonNotAcceptable, http.StatusNotAcceptable, ...) + var NotFound = def(CodeCommonNotFound, http.StatusNotFound, ...) + var OrganizationExists = def(CodeOrganizationExists, http.StatusConflict, ...) + var OrganizationNotFound = def(CodeOrganizationNotFound, http.StatusNotFound, ...) + var PolicyInUse = def(CodePolicyInUse, http.StatusConflict, ...) + var PolicyInvalidState = def(CodePolicyInvalidState, http.StatusConflict, ...) + var PolicyVersionConflict = def(CodePolicyVersionConflict, http.StatusConflict, ...) + var ProjectExists = def(CodeProjectExists, http.StatusConflict, ...) + var ProjectNotFound = def(CodeProjectNotFound, http.StatusNotFound, ...) + var ProjectRefNotFound = def(CodeProjectRefNotFound, http.StatusBadRequest, ...) + var RESTAPIDeploymentValidationFailed = def(CodeRESTAPIDeploymentValidationFailed, http.StatusBadRequest, "%s") + var RESTAPIExists = def(CodeRESTAPIExists, http.StatusConflict, "%s") + var RESTAPINotFound = def(CodeRESTAPINotFound, http.StatusNotFound, ...) + var SecretExists = def(CodeSecretExists, http.StatusConflict, ...) + var SecretInUse = def(CodeSecretInUse, http.StatusConflict, ...) + var SecretNotFound = def(CodeSecretNotFound, http.StatusNotFound, ...) + var ServiceUnavailable = def(CodeCommonServiceUnavailable, http.StatusServiceUnavailable, ...) + var SubscriptionExists = def(CodeSubscriptionExists, http.StatusConflict, ...) + var SubscriptionForbidden = def(CodeSubscriptionForbidden, http.StatusForbidden, ...) + var SubscriptionNotFound = def(CodeSubscriptionNotFound, http.StatusNotFound, ...) + var SubscriptionPlanExists = def(CodeSubscriptionPlanExists, http.StatusConflict, ...) + var SubscriptionPlanNotFound = def(CodeSubscriptionPlanNotFound, http.StatusNotFound, ...) + var TooManyRequests = def(CodeCommonTooManyRequests, http.StatusTooManyRequests, "%s") + var Unauthorized = def(CodeCommonUnauthorized, http.StatusUnauthorized, ...) + var UnprocessableEntity = def(CodeCommonUnprocessableEntity, http.StatusUnprocessableEntity, ...) + var ValidationFailed = def(CodeCommonValidationFailed, http.StatusBadRequest, "%s") + func NewValidationErrorResponse(w http.ResponseWriter, err error) + func WriteHTTP(w http.ResponseWriter, e *Error, trackingID string) + type Def struct + Code string + HTTPStatus int + MessageFmt string + func (d Def) Is(err error) bool + func (d Def) New(args ...any) *Error + func (d Def) Wrap(cause error, args ...any) *Error + type Error struct + Cause error + Code string + Details any + FieldErrors []FieldError + HTTPStatus int + LogMessage string + Message string + Stack []uintptr + func NewValidation(err error) *Error + func (e *Error) Error() string + func (e *Error) Origin() string + func (e *Error) StackString() string + func (e *Error) Unwrap() error + func (e *Error) WithCause(err error) *Error + func (e *Error) WithDetails(details any) *Error + func (e *Error) WithFieldErrors(fe []FieldError) *Error + func (e *Error) WithLogMessage(msg string) *Error + type ErrorResponse struct + Code string + Details any + Errors []FieldError + Message string + Status string + TrackingID string + func NewErrorResponse(httpStatus int, title string, description ...string) ErrorResponse + func NewErrorResponseWithCode(code, message string) ErrorResponse + type FieldError struct + Field string + Message string