Added code and tests to parse error responses as RDF