Fixed the problem of Invalid argument supplied for foreach.
Debug will no longer display too many error detail when Debug option set to false.

Little change on Response function core.