Constants
@system-inc/base-foundation · 515c140 · 9 symbols
ERROR_CODE_ALREADY_EXISTS
The resource already exists.
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.
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_INVALID_TYPE
The provided data is of an invalid type.
ERROR_CODE_NOT_FOUND
The requested resource was not found.
ERROR_CODE_PERMISSION_DENIED
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_QUOTA_EXCEEDED
The quota for the operation has been exceeded.
ERROR_CODE_SERIALIZATION_ERROR
There was a validation error with the provided data.
ERROR_CODE_VALIDATION_ERROR
There was a validation error with the provided data.