Python Numpy Ndarray Object Has No Attribute Status Code In Api