altered responses to be a dict, in order to handle any type of http response code