Python Numpy Ndarray Object Has No Attribute Status Code