> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GraphQlError

> Describes an expected failure of a mutation, with a code to act on. It is returned in the payload's `errors` list.



**Kind**: `object`

## Implements

- `Error`

## Fields

**`code`**: `String!`

Kind of failure. `ValidationError`: the input is invalid; `details` names each failing field. `NotFoundError`: an id doesn't exist; check it. `ConflictError`: the change clashes with the current state (a name already in use, an item still referenced, work still running); see `message`. `OptimisticConcurrencyError`: stale `etag`; re-read and retry. `UnauthorizedError` or `ForbiddenError`: the caller has no access. A mutation's own text names any other code it returns; any code not named here or there is an unexpected failure.

---

**`details`**: `[KeyValuePairOfStringAndString!]`

Failing input fields of a `ValidationError`, one item per field: `key` names the input field, `value` holds its failure messages joined by `; `. Set only for `ValidationError`.

---

**`message`**: `String!`

Readable description of the failure.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.