Constants

@system-inc/base-foundation · 515c140 · 9 symbols

The resource already exists.

ERROR_CODE_ALREADY_EXISTS: "ALREADY_EXISTS"

View source ↗

A user must be authenticated to perform an operation.

Produced by the access-control middleware when a handler requires authorization (@RequireSessionAccess) and no session resolves.

ERROR_CODE_AUTHENTICATION_REQUIRED: "AUTHENTICATION_REQUIRED"

View source ↗

The user does not have sufficient entitlements, e.g. a plan or membership to access a resource.

The entitlements are something the user can remedy by upgrading themselves by doing something on the website or similar.

ERROR_CODE_INSUFFICIENT_ENTITLEMENTS: "INSUFFICIENT_ENTITLEMENTS"

View source ↗

The provided data is of an invalid type.

ERROR_CODE_INVALID_TYPE: "INVALID_TYPE"

View source ↗

The requested resource was not found.

ERROR_CODE_NOT_FOUND: "NOT_FOUND"

View source ↗

The user does not have sufficient access roles to access a resource.

This is different from insufficient entitlements, as access roles are assigned by an administrator or system, rather than the user themselves, and will typically require intervention from support or an administrator to resolve.

ERROR_CODE_PERMISSION_DENIED: "PERMISSION_DENIED"

View source ↗

The quota for the operation has been exceeded.

ERROR_CODE_QUOTA_EXCEEDED: "QUOTA_EXCEEDED"

View source ↗

There was a validation error with the provided data.

ERROR_CODE_SERIALIZATION_ERROR: "SERIALIZATION_ERROR"

View source ↗

There was a validation error with the provided data.

ERROR_CODE_VALIDATION_ERROR: "VALIDATION_ERROR"

View source ↗