19.2. Neo4j Status Codes
The transactional endpoint may in any response include zero or more status codes, indicating issues or information for the client. Each status code follows the same format: "Neo.[Classification].[Category].[Title]". The fact that a status code is returned by the server does always mean there is a fatal error. Status codes can also indicate transient problems that may go away if you retry the request.
What the effect of the status code is can be determined by its classification.
Note This is not the same thing as HTTP status codes. Neo4j Status Codes are returned in the response body, at the very end of the response. |
Classifications
Classification | Description | Effect on transaction |
---|---|---|
| The Client sent a bad request - changing the request might yield a successful outcome. | None |
| The database failed to service the request. | Rollback |
| The database cannot service the request right now, retrying later might yield a successful outcome. | None |
Status codes
This is a complete list of all status codes Neo4j may return, and what they mean.
Status Code | Description |
---|---|
| This is a read only database, writing or modifying the database is not allowed. |
| The client provided an invalid request. |
| The client provided a request that was missing required fields, or had values that are not allowed. |
| Unable to perform operation because it would clash with a pre-existing constraint. |
| Unable to create constraint because data that exists in the database violates it. |
| A constraint imposed by the database was violated. |
| A token name, such as a label, relationship type or property key, used is not valid. Tokens cannot be empty strings and cannot be null. |
| Unable to perform operation because it would clash with a pre-existing index. |
| A requested operation can not be performed on the specified index because the index is part of a constraint. If you want to drop the index, for instance, you must drop the constraint. |
| The maximum number of labels supported has been reached, no more labels can be created. |
| The request (directly or indirectly) referred to a constraint that does not exist. |
| The request (directly or indirectly) referred to an index that does not exist. |
| Invalid use of arithmetic, such as dividing by zero. |
| A constraint imposed by the statement is violated by the data in the database. |
| The statement is directly referring to an entity that does not exist. |
| The statement is attempting to perform operations using invalid arguments |
| The statement is syntactically valid, but expresses something that the database cannot do. |
| The statement contains invalid or unsupported syntax. |
| The statement is attempting to perform operations on values with types that are not supported by the operation. |
| The statement is referring to a label that does not exist. |
| The statement is referring to a property that does not exist. |
| The statement is referring to a parameter that was not provided in the request. |
| There were concurrent requests accessing the same transaction, which is not allowed. |
| The transaction is of the wrong type to service the request. For instance, a transaction that has had schema modifications performed in it cannot be used to subsequently perform data operations, and vice versa. |
| The request referred to a transaction that does not exist. |
| A malformed schema rule was encountered. Please contact your support representative. |
| The request (directly or indirectly) referred to an index that is in a failed state. The index needs to be dropped and recreated manually. |
| An unknown failure occurred. |
| Creating a requested constraint failed. |
| The database failed to drop a requested constraint. |
| Failed to create an index. |
| The database failed to drop a requested index. |
| The request accessed a label that did not exist. |
| The request accessed a property that does not exist. |
| The request accessed a relationship type that does not exist. |
| The request referred to a schema rule that does not exist. |
| The database was unable to execute the statement. |
| The database was unable to start the transaction. |
| The database was unable to commit the transaction. |
| The database was unable to roll back the transaction. |
| The transaction was unable to release one or more of its locks. |
| An unknown network failure occurred, a retry may resolve the issue. |