Fixed response code check
Merge pull request #4 from maheee/response_code_check

Fixed response code check