Raise an exception instead of using inappropriate user-supplied content-type