Changed print calls to debug calls and added debug calls with invalid returns for more http calls.
Fixed compile error for previous commit