errors

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ErrInternal is returned for general unrecoverable server errors.
	ErrInternal         = "internal_error"
	ErrNotFound         = "not_found"
	ErrBadRequest       = "bad_request"
	ErrUnauthorized     = "unauthorized"
	ErrForbidden        = "forbidden"
	ErrValidationFailed = "validation_failed"
	ErrInvalidRequest   = "invalid_request"
	ErrNotImplemented   = "not_implemented"

	// ErrPasswordChangeRequired is returned when the user must change their password before proceeding.
	ErrPasswordChangeRequired = "password_change_required"
	ErrAuthEvaluationFailed   = "auth_evaluation_failed"
	ErrCSRFProtection         = "csrf_protection"
	ErrRateLimitExceeded      = "rate_limit_exceeded"
	ErrIPNotAllowed           = "ip_not_allowed"
	ErrAccountDisabled        = "account_disabled"

	// ErrInvalidInput is returned when the uploaded artifact fails validation.
	ErrInvalidInput  = "invalid_input"
	ErrUploadError   = "upload_error"
	ErrDatabaseError = "database_error"
	ErrStorageError  = "storage_error"

	// ErrProviderNotFound is returned when the requested SSO provider does not exist.
	ErrProviderNotFound       = "provider_not_found"
	ErrIDPMetadataUnavailable = "idp_metadata_unavailable"
	ErrSAMLSignatureInvalid   = "saml_signature_invalid"
	ErrSAMLAudienceMismatch   = "saml_audience_mismatch"
	ErrSAMLAssertionExpired   = "saml_assertion_expired"
	ErrSAMLInvalid            = "saml_invalid"
	ErrMissingSubject         = "missing_subject"
	ErrUserNotProvisioned     = "user_not_provisioned"
	ErrEmailAlreadyInUse      = "email_already_in_use"
	ErrEmailLinkAmbiguous     = "email_link_ambiguous"
	ErrInvalidRelayState      = "invalid_relay_state"
	ErrOIDCDiscoveryFailed    = "oidc_discovery_failed"
	ErrLoadFailed             = "load_failed"
	ErrUnauthenticated        = "unauthenticated"
)

Error codes used throughout the API. All codes are lowercase snake_case for consistency.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL