[[rest-api-server-errors]]
=== Server errors ===

Errors on the server will be reported as a JSON-formatted stacktrace and
message.


[source,cypher]
----
START x = node(%I%)
RETURN x.dummy
----


.Final Graph
["dot", "Final-Graph-Server-errors.svg", "neoviz"]
----
  N24 [
    label = "{Node\[24\]|name = \'you\'\l}"
  ]
  N25 [
    label = "{Node\[25\]|name = \'I\'\l}"
  ]
  N25 -> N24 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "know\n"
  ]
----

_Example request_

* *+POST+*  +http://localhost:7474/db/data/cypher+
* *+Accept:+* +application/json+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{"query": "start x = node(25) return x.dummy","params": {}},
----


_Example response_

* *+400:+* +Bad Request+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{
  "message" : "The property 'dummy' does not exist on Node[25]",
  "exception" : "org.neo4j.server.rest.repr.BadInputException: The property 'dummy' does not exist on Node[25]",
  "stacktrace" : [ "org.neo4j.server.rest.repr.RepresentationExceptionHandlingIterable.exceptionOnHasNext(RepresentationExceptionHandlingIterable.java:51)", "org.neo4j.helpers.collection.ExceptionHandlingIterable$1.hasNext(ExceptionHandlingIterable.java:61)", "org.neo4j.helpers.collection.IteratorWrapper.hasNext(IteratorWrapper.java:42)", "org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:58)", "org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:75)", "org.neo4j.server.rest.repr.MappingSerializer.putList(MappingSerializer.java:61)", "org.neo4j.server.rest.repr.ListRepresentation.putTo(ListRepresentation.java:73)", "org.neo4j.server.rest.repr.ObjectRepresentation$PropertyGetter.putTo(ObjectRepresentation.java:133)", "org.neo4j.server.rest.repr.ObjectRepresentation.serialize(ObjectRepresentation.java:144)", "org.neo4j.server.rest.repr.MappingRepresentation.serialize(MappingRepresentation.java:42)", "org.neo4j.server.rest.repr.OutputFormat.format(OutputFormat.java:146)", "org.neo4j.server.rest.repr.OutputFormat.formatRepresentation(OutputFormat.java:114)", "org.neo4j.server.rest.repr.OutputFormat.response(OutputFormat.java:104)", "org.neo4j.server.rest.repr.OutputFormat.ok(OutputFormat.java:52)", "org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:68)", "java.lang.reflect.Method.invoke(Method.java:597)" ]
}
----


