This should raise a useful error if an unknown media-type is passed in.