detects response content type