added feature for retrieving response content type