Added error message for incorrect media type