Fix AttributeError

AttributeError: 'Response' object has no attribute 'status'
Merge pull request #491 from prabeesh/master

Fix AttributeError