Http code 500 was never returned as the string comparison was wrong
Merge pull request #311 from guillegette/master

Http code 500 was never returned as the string comparison was wrong