toastdriven/pysolr — pull request #60 by anti-social (2012-12-05 16:02:04+00:00)
Title: Support for Solr 4.0 error messages

Solr 4.0 handles errors and gets json or xml document with error message:

```javascript
{
"responseHeader": {
"status": 400,
"QTime": 2,
"params": {
"fl": "*,score",
"fq": "id:{asdf asdf TO *}",
"q": "*:*"
}
},
"error": {
"msg": "org.apache.lucene.queryparser.classic.ParseException: Cannot parse 'id:{asdf asdf TO *}': Encountered \" \"TO\" \"TO \"\" at line 1, column 14.\nWas expecting one of:\n \"]\" ...\n \"}\" ...\n ",
"code": 400
}
}
```

```xml

400
0

missing content stream
400

```