Fixed bug where we were trying to map Solr response code whereas there is a request exception
Temp fix exception message not being a string
pep8