Added http response code check
Merge pull request #3 from maheee/60b38eaf415256b23f02bedb34807aa924b212ff

Added response code check