altered responses to be a dict, in order to handle any type of http resp...

...onse code