Added response object to ensure all responses are of the json content type.