Added responseType attribute to http method