Fix AttributeError

AttributeError: 'Response' object has no attribute 'status'