404 response has no attribute json so use response content as json