Return error response if requests library return res as null.