fixes #169
Merge pull request #171 from chirag04/master

fix errors when response code is 204,300,304