Skip to main content

Enumeration: ApiErrorMessages

Defined in: service-core/src/ApiErrors.ts:38

Defines the default message of all common API errors.

Enumeration Members​

AUTH_CSRF_FAILURE​

AUTH_CSRF_FAILURE: "This request is missing a valid CSRF token."

Defined in: service-core/src/ApiErrors.ts:62


AUTH_FAILED​

AUTH_FAILED: "Invalid or missing authentication token."

Defined in: service-core/src/ApiErrors.ts:58


AUTH_PERMISSION_FAILURE​

AUTH_PERMISSION_FAILURE: "User does not have permission to perform this action."

Defined in: service-core/src/ApiErrors.ts:59


AUTH_REQUIRED​

AUTH_REQUIRED: "Authorization is required to access this resource."

Defined in: service-core/src/ApiErrors.ts:57


AUTH_REQUIRES_ELEVATION​

AUTH_REQUIRES_ELEVATION: "This operation requires elevation."

Defined in: service-core/src/ApiErrors.ts:61


AUTH_REQUIRES_TRUSTED_ROLE​

AUTH_REQUIRES_TRUSTED_ROLE: "User does not have permission to perform this action."

Defined in: service-core/src/ApiErrors.ts:60


BULK_CREATE_FAILURE​

BULK_CREATE_FAILURE: "Failed to create one or more objects."

Defined in: service-core/src/ApiErrors.ts:54


BULK_UPDATE_FAILURE​

BULK_UPDATE_FAILURE: "Failed to update one or more objects."

Defined in: service-core/src/ApiErrors.ts:55


IDENTIFIER_EXISTS​

IDENTIFIER_EXISTS: "A resource with that identifier already exists."

Defined in: service-core/src/ApiErrors.ts:44


INTERNAL_ERROR​

INTERNAL_ERROR: "An internal error has occurred. Please contact the adminstrator."

Defined in: service-core/src/ApiErrors.ts:40


INVALID_OBJECT_VERSION​

INVALID_OBJECT_VERSION: "Invalid object version. Do you have the latest version?"

Defined in: service-core/src/ApiErrors.ts:45


INVALID_REQUEST​

INVALID_REQUEST: "Invalid message or request."

Defined in: service-core/src/ApiErrors.ts:41


NOT_FOUND​

NOT_FOUND: "No resource could be found with the specified identifier."

Defined in: service-core/src/ApiErrors.ts:43


OBJECT_ID_MISMATCH​

OBJECT_ID_MISMATCH: "The object provided does not match the identifier given."

Defined in: service-core/src/ApiErrors.ts:46


PAYLOAD_TOO_LARGE​

PAYLOAD_TOO_LARGE: "The request body exceeds the maximum allowed size."

Defined in: service-core/src/ApiErrors.ts:42


SEARCH_INVALID_ME_REFERENCE​

SEARCH_INVALID_ME_REFERENCE: "Use of the `me` reference requires authentication."

Defined in: service-core/src/ApiErrors.ts:48


SEARCH_INVALID_OPERAND_TYPE​

SEARCH_INVALID_OPERAND_TYPE: "Invalid value '{{value}}' for field '{{field}}'. Expected a {{type}}."

Defined in: service-core/src/ApiErrors.ts:50


SEARCH_INVALID_RANGE​

SEARCH_INVALID_RANGE: "Invalid range value: '{{value}}'. Expected 2 arguments, got {{length}}"

Defined in: service-core/src/ApiErrors.ts:47


SEARCH_INVALID_SORT_FIELD​

SEARCH_INVALID_SORT_FIELD: "Cannot sort by unknown field '{{field}}'."

Defined in: service-core/src/ApiErrors.ts:51


SEARCH_OPERATOR_NOT_SUPPORTED​

SEARCH_OPERATOR_NOT_SUPPORTED: "The '{{operator}}' operator is not supported by the configured datasource."

Defined in: service-core/src/ApiErrors.ts:53


SEARCH_QUERY_TOO_COMPLEX​

SEARCH_QUERY_TOO_COMPLEX: "The search query is too deeply nested or has too many conditions."

Defined in: service-core/src/ApiErrors.ts:52


SEARCH_SCOPED_FIELD​

SEARCH_SCOPED_FIELD: "Cannot filter, sort or count by scoped field '{{field}}'."

Defined in: service-core/src/ApiErrors.ts:56


SEARCH_UNKNOWN_OPERATOR​

SEARCH_UNKNOWN_OPERATOR: "Unknown search operator '{{operator}}'. Use eq() to search for a literal value shaped like an operator call."

Defined in: service-core/src/ApiErrors.ts:49


UNKNOWN​

UNKNOWN: "An unknown error has occurred. Please try again."

Defined in: service-core/src/ApiErrors.ts:39