[[rest-api-shouldrespondwith404whenstartnodedoesnotexist]]
=== ShouldRespondWith404WhenStartNodeDoesNotExist ===

.Final Graph
["dot", "Final-Graph-shouldRespondWith404WhenStartNodeDoesNotExist.svg", "neoviz"]
----
  N88 [
    label = "{Node\[88\]|name = \'Sara\'\l}"
  ]
  N89 [
    label = "{Node\[89\]|name = \'Joe\'\l}"
  ]
  N89 -> N88 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "knows\n"
  ]
----

_Example request_

* *+POST+*  +http://localhost:7474/db/data//node/12345/relationships+
* *+Accept:+* +text/html+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{"to" : "http://localhost:7474/db/data/node/Node[89]", "type" : "LOVES", "data" : {"foo" : "bar"}}
----


_Example response_

* *+404:+* +Not Found+
* *+Content-Type:+* +text/html; charset=iso-8859-1+
[source,javascript]
----
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /db/data//node/12345/relationships. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                

</body>
</html>

----


