fix bug:media type support multi;update exception handler for invalid
media type