versae/neo4j-rest-client — pull request #57 by necaris (2012-03-10 03:36:53+00:00)
Title: Add better debug messages on Neo4j REST errors

Existing simply reports "Invalid data sent" if Neo4j returns a non-200 error status -- since this encapsulates server / logic errors (500s) as well as data formatting errors (400s), the 'message' field in the response JSON can be very useful.

This patch adds that field, if present, to the StatusException raised on a non-2xx response.