It would be good to enhance the ArangoDBException class to be able to get the error code. This will enable proper error handling based on response code. Currently I believe all of it is embedded in a String