Improved error parsing for errors from node server