set content type for API response